From e3ad6c5657843830e5b4137742ab1e6af7ba3d56 Mon Sep 17 00:00:00 2001 From: Stephan Telling Date: Sun, 7 Jan 2018 20:15:09 +0100 Subject: [PATCH] update bootstrap script with better dates --- src/utils/management/commands/bootstrap-devsite.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/utils/management/commands/bootstrap-devsite.py b/src/utils/management/commands/bootstrap-devsite.py index 250f11c2..b3331837 100644 --- a/src/utils/management/commands/bootstrap-devsite.py +++ b/src/utils/management/commands/bootstrap-devsite.py @@ -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