update bootstrap script with camps for tickettype

This commit is contained in:
Stephan Telling 2017-08-17 21:18:43 +02:00
parent fc87a13c05
commit ac5fb77c7a
No known key found for this signature in database
GPG Key ID: D4892289F36ADA9B
1 changed files with 19 additions and 14 deletions

View File

@ -206,20 +206,6 @@ class Command(BaseCommand):
light_text=True
)
self.output('Creating tickettypes...')
TicketType.objects.create(
name='Adult Full Week'
)
TicketType.objects.create(
name='Adult One Day'
)
TicketType.objects.create(
name='Child Full Week'
)
TicketType.objects.create(
name='Child One Day'
)
self.output("Creating productcategories...")
transportation = ProductCategory.objects.create(
name='Transportation',
@ -399,6 +385,25 @@ class Command(BaseCommand):
for camp in [camp2016, camp2017, camp2018]:
year = camp.camp.lower.year
self.output('Creating tickettypes for {}...'.format(year))
TicketType.objects.create(
name='Adult Full Week',
camp=camp
)
TicketType.objects.create(
name='Adult One Day',
camp=camp
)
TicketType.objects.create(
name='Child Full Week',
camp=camp
)
TicketType.objects.create(
name='Child One Day',
camp=camp
)
self.output('Creating eventlocations for {}...'.format(year))
speakers_tent = EventLocation.objects.create(
name='Speakers Tent',