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

View file

@ -17,6 +17,9 @@ from program.models import (
Speaker, Speaker,
EventLocation EventLocation
) )
from tickets.models import (
TicketType
)
from teams.models import Team, TeamArea, TeamMember from teams.models import Team, TeamArea, TeamMember
from django.contrib.auth.models import User from django.contrib.auth.models import User
from allauth.account.models import EmailAddress from allauth.account.models import EmailAddress
@ -200,6 +203,20 @@ class Command(BaseCommand):
light_text=True 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...") self.output("Creating productcategories...")
transportation = ProductCategory.objects.create( transportation = ProductCategory.objects.create(
name='Transportation', name='Transportation',