Don't show T&Cs on the additional products page

This commit is contained in:
James Polley 2018-09-30 13:56:52 +10:00
parent 455f721b98
commit cd434af000

View file

@ -271,6 +271,8 @@ def _guided_registration_products(request, 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_TERMS:
cats = cats.filter(id=settings.TERMS_PRODUCT_CATEGORY)
elif mode == GUIDED_MODE_ALL_ADDITIONAL:
cats = cats.exclude(id=settings.TICKET_PRODUCT_CATEGORY)
cats = cats.exclude(id=settings.TERMS_PRODUCT_CATEGORY)