update bootstrap script with better dates

This commit is contained in:
Stephan Telling 2018-01-07 20:15:09 +01:00
parent 328d6aa803
commit e3ad6c5657
No known key found for this signature in database
GPG Key ID: D4892289F36ADA9B
1 changed files with 6 additions and 6 deletions

View File

@ -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