From dfcd2acc7466d0f342c45b9d3cefbba152858943 Mon Sep 17 00:00:00 2001 From: Clinton Roy Date: Tue, 24 Sep 2019 19:23:53 +1000 Subject: [PATCH] create penguin tickets through their category --- pinaxcon/settings.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index 48d551ed..cc0c83f0 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -524,16 +524,22 @@ SPONSOR = Ticket("Sponsor", Decimal("0.0"), None) CONFERENCE_ORG = Ticket("Conference Organiser", Decimal("0.0"), None) CONFERENCE_VOL = Ticket("Conference Volunteer", Decimal("0.0"), None) -PENGUIN_DINNER_ADULT = PenguinDinnerTicket("Adult", Decimal("95.00"), - "Includes an adult's meal and full beverage service.") -PENGUIN_DINNER_CHILD = PenguinDinnerTicket("Child", Decimal("50.00"), - "Children 14 and under. " - "Includes a child's meal and soft drink service.") -PENGUIN_DINNER_INFANT = PenguinDinnerTicket("Infant", Decimal("0.0"), - "Includes no food or beverage service.") +PENGUIN_DINNER = PenguinDinnerCat +PENGUIN_DINNER_ADULT = PenguinDinnerCat.create( + "Adult", Decimal("95.00"), + "Includes an adult's meal and full beverage service.", + timedelta(hours=1)) +PENGUIN_DINNER_CHILD = PenguinDinnerCat.create( + "Child", Decimal("50.00"), + "Children 14 and under. " + "Includes a child's meal and soft drink service.", + timedelta(hours=1)) +PENGUIN_DINNER_INFANT = PenguinDinnerCat.create( + "Infant", Decimal("0.0"), + "Includes no food or beverage service.", + timedelta(hours=1)) SPEAKERS_DINNER = SpeakersDinnerCat -PENGUIN_DINNER = PenguinDinnerCat SPEAKERS_DINNER_ADULT = SpeakersDinnerCat.create( "Adult", Decimal("100.00"),