Don't show T&Cs on the additional products page
This commit is contained in:
parent
b54d4bc04a
commit
455f721b98
2 changed files with 5 additions and 2 deletions
|
@ -350,6 +350,7 @@ ATTENDEE_PROFILE_MODEL = "pinaxcon.registrasion.models.AttendeeProfile"
|
||||||
ATTENDEE_PROFILE_FORM = "pinaxcon.registrasion.forms.ProfileForm"
|
ATTENDEE_PROFILE_FORM = "pinaxcon.registrasion.forms.ProfileForm"
|
||||||
INVOICE_CURRENCY = "AUD"
|
INVOICE_CURRENCY = "AUD"
|
||||||
TICKET_PRODUCT_CATEGORY = 1
|
TICKET_PRODUCT_CATEGORY = 1
|
||||||
|
TERMS_PRODUCT_CATEGORY = 2
|
||||||
ATTENDEE_PROFILE_FORM = "pinaxcon.registrasion.forms.ProfileForm"
|
ATTENDEE_PROFILE_FORM = "pinaxcon.registrasion.forms.ProfileForm"
|
||||||
|
|
||||||
#REGIDESK
|
#REGIDESK
|
||||||
|
|
6
vendor/registrasion/registrasion/views.py
vendored
6
vendor/registrasion/registrasion/views.py
vendored
|
@ -90,8 +90,9 @@ def guided_registration(request, page_number=None):
|
||||||
page_number:
|
page_number:
|
||||||
1) Profile form (and e-mail address?)
|
1) Profile form (and e-mail address?)
|
||||||
2) Ticket type
|
2) Ticket type
|
||||||
3) Remaining products
|
3) T&C Consent
|
||||||
4) Mark registration as complete
|
4) Remaining products
|
||||||
|
5) Mark registration as complete
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
render: Renders ``registrasion/guided_registration.html``,
|
render: Renders ``registrasion/guided_registration.html``,
|
||||||
|
@ -272,6 +273,7 @@ def _guided_registration_products(request, mode):
|
||||||
cats = cats.filter(id=settings.TICKET_PRODUCT_CATEGORY)
|
cats = cats.filter(id=settings.TICKET_PRODUCT_CATEGORY)
|
||||||
elif mode == GUIDED_MODE_ALL_ADDITIONAL:
|
elif mode == GUIDED_MODE_ALL_ADDITIONAL:
|
||||||
cats = cats.exclude(id=settings.TICKET_PRODUCT_CATEGORY)
|
cats = cats.exclude(id=settings.TICKET_PRODUCT_CATEGORY)
|
||||||
|
cats = cats.exclude(id=settings.TERMS_PRODUCT_CATEGORY)
|
||||||
elif mode == GUIDED_MODE_EXCLUDE_COMPLETE:
|
elif mode == GUIDED_MODE_EXCLUDE_COMPLETE:
|
||||||
cats = cats.exclude(id=settings.TICKET_PRODUCT_CATEGORY)
|
cats = cats.exclude(id=settings.TICKET_PRODUCT_CATEGORY)
|
||||||
cats = cats.exclude(id__in=old_cats)
|
cats = cats.exclude(id__in=old_cats)
|
||||||
|
|
Loading…
Reference in a new issue