add ticket students to the student ticket cap. lots of tiny styling issues.

This commit is contained in:
Clinton Roy 2019-09-22 13:41:57 +10:00 committed by Joel Addison
parent 183896d2b6
commit db90ed20db

View file

@ -1,5 +1,4 @@
from collections import namedtuple
from datetime import datetime
from datetime import timedelta
from decimal import Decimal
from django.conf import settings
@ -479,6 +478,11 @@ class Command(BaseCommand):
condition=cond.FlagBase.DISABLE_IF_FALSE,
limit=100,
)
student_ticket_cap.products.set([
self.ticket_student,
])
public_ticket_cap.products.set([
self.ticket_fairy,
self.ticket_professional,
@ -683,7 +687,6 @@ class Command(BaseCommand):
self.speakers_dinner_ticket,
])
def populate_discounts(self):
def add_early_birds(discount):
self.find_or_make(