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