File diff c7b5535fd0c8 → 2a8c6c895d7f
pinaxcon/registrasion/management/commands/populate_inventory.py
Show inline comments
...
 
@@ -170,8 +170,8 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.ticket,
 
            name="Contributor",
 
            price=Decimal("1999.00"),
 
            name=settings.CONTRIBUTOR.name,
 
            price=settings.CONTRIBUTOR.regular_price,
 
            reservation_duration=hours(24),
 
            order=1,
 
        )
...
 
@@ -179,8 +179,8 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.ticket,
 
            name="Professional",
 
            price=Decimal("999.00"),
 
            name=settings.PROFESSIONAL.name,
 
            price=settings.PROFESSIONAL.regular_price,
 
            reservation_duration=hours(24),
 
            order=10,
 
        )
...
 
@@ -188,8 +188,8 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.ticket,
 
            name="Hobbyist",
 
            price=Decimal("449.00"),
 
            name=settings.HOBBYIST.name,
 
            price=settings.HOBBYIST.regular_price,
 
            reservation_duration=hours(24),
 
            order=20,
 
        )
...
 
@@ -197,8 +197,8 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.ticket,
 
            name="Student",
 
            price=Decimal("149.00"),
 
            name=settings.STUDENT.name,
 
            price=settings.STUDENT.regular_price,
 
            reservation_duration=hours(24),
 
            order=30,
 
        )
...
 
@@ -206,8 +206,8 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.ticket,
 
            name="Monday and Tuesday Only",
 
            price=Decimal("198.00"),
 
            name=settings.MINICONF_MT.name,
 
            price=settings.MINICONF_MT.regular_price,
 
            reservation_duration=hours(24),
 
            order=40,
 
        )
...
 
@@ -215,8 +215,8 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.ticket,
 
            name="Monday Only",
 
            price=Decimal("99.00"),
 
            name=settings.MINICONF_M.name,
 
            price=settings.MINICONF_M.regular_price,
 
            reservation_duration=hours(24),
 
            order=42,
 
        )
...
 
@@ -224,8 +224,8 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.ticket,
 
            name="Tuesday Only",
 
            price=Decimal("99.00"),
 
            name=settings.MINICONF_MT.name,
 
            price=settings.MINICONF_MT.regular_price,
 
            reservation_duration=hours(24),
 
            order=44,
 
        )
...
 
@@ -233,8 +233,8 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.ticket,
 
            name="Speaker",
 
            price=Decimal("00.00"),
 
            name=settings.SPEAKER.name,
 
            price=settings.SPEAKER.regular_price,
 
            reservation_duration=hours(24),
 
            order=50,
 
        )
...
 
@@ -242,8 +242,8 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.ticket,
 
            name="Media",
 
            price=Decimal("00.00"),
 
            name=settings.MEDIA.name,
 
            price=settings.MEDIA.regular_price,
 
            reservation_duration=hours(24),
 
            order=60,
 
        )
...
 
@@ -251,8 +251,8 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.ticket,
 
            name="Sponsor",
 
            price=Decimal("00.00"),
 
            name=settings.SPONSOR.name,
 
            price=settings.SPONSOR.regular_price,
 
            reservation_duration=hours(24),
 
            order=70,
 
        )
...
 
@@ -260,8 +260,8 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.ticket,
 
            name="Conference Organiser",
 
            price=Decimal("00.00"),
 
            name=settings.CONFERENCE_ORG.name,
 
            price=settings.CONFERENCE_ORG.regular_price,
 
            reservation_duration=hours(24),
 
            order=80,
 
        )
...
 
@@ -269,8 +269,8 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.ticket,
 
            name="Conference Volunteer",
 
            price=Decimal("00.00"),
 
            name=settings.CONFERENCE_VOL.name,
 
            price=settings.CONFERENCE_VOL.regular_price,
 
            reservation_duration=hours(24),
 
            order=90,
 
        )
...
 
@@ -292,9 +292,9 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.penguin_dinner,
 
            name="Adult",
 
            description="Includes an adult's meal and full beverage service.",
 
            price=Decimal("95.00"),
 
            name=settings.PENGUIN_DINNER_ADULT.name,
 
            description=settings.PENGUIN_DINNER_ADULT.description,
 
            price=settings.PENGUIN_DINNER_ADULT.price,
 
            reservation_duration=hours(1),
 
            order=10,
 
        )
...
 
@@ -302,9 +302,9 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.penguin_dinner,
 
            name="Child",
 
            description="Children 14 and under. Includes a child's meal and soft drink service.",
 
            price=Decimal("50.00"),
 
            name=settings.PENGUIN_DINNER_CHILD.name,
 
            description=settings.PENGUIN_DINNER_CHILD.description,
 
            price=settings.PENGUIN_DINNER_CHILD.price,
 
            reservation_duration=hours(1),
 
            order=20,
 
        )
...
 
@@ -312,9 +312,9 @@ class Command(BaseCommand):
 
            inv.Product,
 
            ("name", "category",),
 
            category=self.penguin_dinner,
 
            name="Infant",
 
            description="Includes no food or beverage service.",
 
            price=Decimal("00.00"),
 
            name=settings.PENGUIN_DINNER_INFANT.name,
 
            description=settings.PENGUIN_DINNER_INFANT.description,
 
            price=settings.PENGUIN_DINNER_INFANT.price,
 
            reservation_duration=hours(1),
 
            order=30,
 
        )
...
 
@@ -694,7 +694,7 @@ class Command(BaseCommand):
 
                ("discount", "product"),
 
                discount=discount,
 
                product=self.ticket_contributor,
 
                price=Decimal("150.00"),
 
                price=settings.CONTRIBUTOR.regular_price - settings.CONTRIBUTOR.earlybird_price,
 
                quantity=1,  # Per user
 
            )
 
            self.find_or_make(
...
 
@@ -702,7 +702,7 @@ class Command(BaseCommand):
 
                ("discount", "product"),
 
                discount=discount,
 
                product=self.ticket_professional,
 
                price=Decimal("150.00"),
 
                price=settings.PROFESSIONAL.regular_price - settings.PROFESSIONAL.earlybird_price,
 
                quantity=1,  # Per user
 
            )
 

	
...
 
@@ -729,7 +729,7 @@ class Command(BaseCommand):
 
                ("discount", "product"),
 
                discount=early_bird_hobbyist_discount,
 
                product=self.ticket_hobbyist,
 
                price=Decimal("100.00"),
 
                price=settings.HOBBYIST.regular_price - settings.HOBBYIST.earlybird_price,
 
                quantity=1,  # Per user
 
        )