add ticket students to the student ticket cap. lots of tiny styling issues.
This commit is contained in:
parent
183896d2b6
commit
db90ed20db
1 changed files with 11 additions and 8 deletions
|
@ -1,5 +1,4 @@
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from datetime import datetime
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
@ -130,7 +129,7 @@ class Command(BaseCommand):
|
||||||
("name",),
|
("name",),
|
||||||
name="Shirt",
|
name="Shirt",
|
||||||
description="Commemorative conference polo shirts, featuring the "
|
description="Commemorative conference polo shirts, featuring the "
|
||||||
f"linux.conf.au {settings.LCA_START.year} artwork.",
|
f"linux.conf.au {settings.LCA_START.year} artwork.",
|
||||||
required=False,
|
required=False,
|
||||||
render_type=inv.Category.RENDER_TYPE_ITEM_QUANTITY,
|
render_type=inv.Category.RENDER_TYPE_ITEM_QUANTITY,
|
||||||
order=50,
|
order=50,
|
||||||
|
@ -279,8 +278,8 @@ class Command(BaseCommand):
|
||||||
# Agreements
|
# Agreements
|
||||||
self.accept_terms = self.find_or_make(
|
self.accept_terms = self.find_or_make(
|
||||||
inv.Product,
|
inv.Product,
|
||||||
("name","category",),
|
("name", "category",),
|
||||||
category = self.terms,
|
category=self.terms,
|
||||||
name="I Accept",
|
name="I Accept",
|
||||||
price=Decimal("00.00"),
|
price=Decimal("00.00"),
|
||||||
reservation_duration=hours(24),
|
reservation_duration=hours(24),
|
||||||
|
@ -479,6 +478,11 @@ class Command(BaseCommand):
|
||||||
condition=cond.FlagBase.DISABLE_IF_FALSE,
|
condition=cond.FlagBase.DISABLE_IF_FALSE,
|
||||||
limit=100,
|
limit=100,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
student_ticket_cap.products.set([
|
||||||
|
self.ticket_student,
|
||||||
|
])
|
||||||
|
|
||||||
public_ticket_cap.products.set([
|
public_ticket_cap.products.set([
|
||||||
self.ticket_fairy,
|
self.ticket_fairy,
|
||||||
self.ticket_professional,
|
self.ticket_professional,
|
||||||
|
@ -653,13 +657,13 @@ class Command(BaseCommand):
|
||||||
])
|
])
|
||||||
pdns_by_staff.categories.set([self.pdns_category, ])
|
pdns_by_staff.categories.set([self.pdns_category, ])
|
||||||
|
|
||||||
#Don't allow people to get anything if they don't have a ticket first
|
# Don't allow people to get anything if they don't have a ticket first
|
||||||
needs_a_ticket = self.find_or_make(
|
needs_a_ticket = self.find_or_make(
|
||||||
cond.CategoryFlag,
|
cond.CategoryFlag,
|
||||||
("description", ),
|
("description", ),
|
||||||
description="GottaGettaTicketFirst",
|
description="GottaGettaTicketFirst",
|
||||||
condition=cond.FlagBase.DISABLE_IF_FALSE,
|
condition=cond.FlagBase.DISABLE_IF_FALSE,
|
||||||
enabling_category = self.ticket
|
enabling_category=self.ticket
|
||||||
)
|
)
|
||||||
needs_a_ticket.categories.set([
|
needs_a_ticket.categories.set([
|
||||||
self.extras,
|
self.extras,
|
||||||
|
@ -673,7 +677,7 @@ class Command(BaseCommand):
|
||||||
("description", ),
|
("description", ),
|
||||||
description="Must Accept Terms",
|
description="Must Accept Terms",
|
||||||
condition=cond.FlagBase.DISABLE_IF_FALSE,
|
condition=cond.FlagBase.DISABLE_IF_FALSE,
|
||||||
enabling_category = self.terms,
|
enabling_category=self.terms,
|
||||||
)
|
)
|
||||||
needs_agreement.categories.set([
|
needs_agreement.categories.set([
|
||||||
self.extras,
|
self.extras,
|
||||||
|
@ -683,7 +687,6 @@ class Command(BaseCommand):
|
||||||
self.speakers_dinner_ticket,
|
self.speakers_dinner_ticket,
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
def populate_discounts(self):
|
def populate_discounts(self):
|
||||||
def add_early_birds(discount):
|
def add_early_birds(discount):
|
||||||
self.find_or_make(
|
self.find_or_make(
|
||||||
|
|
Loading…
Reference in a new issue