From ec428f78d57c6839b745c050a9d5faf3ca04bec8 Mon Sep 17 00:00:00 2001 From: Stephan Telling Date: Thu, 17 Aug 2017 19:09:46 +0200 Subject: [PATCH] update bootstrap script with tickettypes --- .../management/commands/bootstrap-devsite.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/utils/management/commands/bootstrap-devsite.py b/src/utils/management/commands/bootstrap-devsite.py index ed9420a4..7d04cfda 100644 --- a/src/utils/management/commands/bootstrap-devsite.py +++ b/src/utils/management/commands/bootstrap-devsite.py @@ -17,6 +17,9 @@ from program.models import ( Speaker, EventLocation ) +from tickets.models import ( + TicketType +) from teams.models import Team, TeamArea, TeamMember from django.contrib.auth.models import User from allauth.account.models import EmailAddress @@ -200,6 +203,20 @@ 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',