forked from CGM_Public/pretix_original
Fix ValueError introduced in e12caf18
This commit is contained in:
@@ -58,7 +58,7 @@ def contextprocessor(request):
|
|||||||
ctx['new_session'] = child_sess
|
ctx['new_session'] = child_sess
|
||||||
request.session['event_access'] = True
|
request.session['event_access'] = True
|
||||||
|
|
||||||
if 'subevent' in request.GET:
|
if request.GET.get('subevent', ''):
|
||||||
# Do not use .get() for lazy evaluation
|
# Do not use .get() for lazy evaluation
|
||||||
ctx['selected_subevents'] = request.event.subevents.filter(pk=request.GET.get('subevent'))
|
ctx['selected_subevents'] = request.event.subevents.filter(pk=request.GET.get('subevent'))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user