update bootstrap script with better dates
This commit is contained in:
parent
328d6aa803
commit
e3ad6c5657
|
@ -321,29 +321,29 @@ class Command(BaseCommand):
|
|||
camp=camp
|
||||
)
|
||||
|
||||
name = 'Standard ticket {}'.format(year)
|
||||
name = 'BornHack {} Standard ticket'.format(year)
|
||||
ticket1 = Product.objects.create(
|
||||
name=name,
|
||||
description='A ticket',
|
||||
price=1200,
|
||||
category=tickets,
|
||||
available_in=(
|
||||
timezone.datetime(2017, 3, 1, 12, 0, tzinfo=timezone.utc),
|
||||
timezone.datetime(2017, 8, 20, 12, 0, tzinfo=timezone.utc),
|
||||
timezone.datetime(year, 1, 1, 12, 0, tzinfo=timezone.utc),
|
||||
timezone.datetime(year, 12, 20, 12, 0, tzinfo=timezone.utc),
|
||||
),
|
||||
slug='{}'.format(slugify(name)),
|
||||
ticket_type=adult_full_week
|
||||
)
|
||||
|
||||
name = 'Hacker ticket {}'.format(year)
|
||||
name = 'BornHack {} Hacker ticket'.format(year)
|
||||
ticket2 = Product.objects.create(
|
||||
name=name,
|
||||
description='Another ticket',
|
||||
price=1337,
|
||||
category=tickets,
|
||||
available_in=(
|
||||
timezone.datetime(2017, 3, 1, 12, 0, tzinfo=timezone.utc),
|
||||
timezone.datetime(2017, 8, 20, 12, 0, tzinfo=timezone.utc),
|
||||
timezone.datetime(year, 1, 1, 12, 0, tzinfo=timezone.utc),
|
||||
timezone.datetime(year, 12, 20, 12, 0, tzinfo=timezone.utc),
|
||||
),
|
||||
slug='{}'.format(slugify(name)),
|
||||
ticket_type=adult_full_week
|
||||
|
|
Loading…
Reference in a new issue