update bootstrap script with tickettypes

This commit is contained in:
Stephan Telling 2017-08-17 19:09:46 +02:00
parent 477b1b85de
commit ec428f78d5
No known key found for this signature in database
GPG Key ID: D4892289F36ADA9B
1 changed files with 17 additions and 0 deletions

View File

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