Changeset - 455f721b983a
[Not reviewed]
0 2 0
James Polley - 6 years ago 2018-09-30 03:53:55
jp@jamezpolley.com
Don't show T&Cs on the additional products page
2 files changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
pinaxcon/settings.py
Show inline comments
...
 
@@ -347,12 +347,13 @@ PROPOSAL_FORMS = {
 

	
 
# Registrasion bits:
 
ATTENDEE_PROFILE_MODEL = "pinaxcon.registrasion.models.AttendeeProfile"
 
ATTENDEE_PROFILE_FORM = "pinaxcon.registrasion.forms.ProfileForm"
 
INVOICE_CURRENCY = "AUD"
 
TICKET_PRODUCT_CATEGORY = 1
 
TERMS_PRODUCT_CATEGORY = 2
 
ATTENDEE_PROFILE_FORM = "pinaxcon.registrasion.forms.ProfileForm"
 

	
 
#REGIDESK
 
REGIDESK_BOARDING_GROUP = "Ready For Boarding"
 

	
 
# CSRF custom error screen
vendor/registrasion/registrasion/views.py
Show inline comments
...
 
@@ -87,14 +87,15 @@ def guided_registration(request, page_number=None):
 
    The user must be logged in to see this view.
 

	
 
    Parameter:
 
        page_number:
 
            1) Profile form (and e-mail address?)
 
            2) Ticket type
 
            3) Remaining products
 
            4) Mark registration as complete
 
            3) T&C Consent
 
            4) Remaining products
 
            5) Mark registration as complete
 

	
 
    Returns:
 
        render: Renders ``registrasion/guided_registration.html``,
 
            with the following data::
 

	
 
                {
...
 
@@ -269,12 +270,13 @@ def _guided_registration_products(request, mode):
 
    if mode == old_mode:
 
        cats = cats.filter(id__in=old_cats)
 
    elif mode == GUIDED_MODE_TICKETS_ONLY:
 
        cats = cats.filter(id=settings.TICKET_PRODUCT_CATEGORY)
 
    elif mode == GUIDED_MODE_ALL_ADDITIONAL:
 
        cats = cats.exclude(id=settings.TICKET_PRODUCT_CATEGORY)
 
        cats = cats.exclude(id=settings.TERMS_PRODUCT_CATEGORY)
 
    elif mode == GUIDED_MODE_EXCLUDE_COMPLETE:
 
        cats = cats.exclude(id=settings.TICKET_PRODUCT_CATEGORY)
 
        cats = cats.exclude(id__in=old_cats)
 

	
 
    # We update the session key at the end of this method
 
    # once we've found all the categories that have available products
0 comments (0 inline, 0 general)