@@ -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__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