update bootstrap script with tickettypes
This commit is contained in:
parent
477b1b85de
commit
ec428f78d5
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue