mirror of
https://github.com/pretix/pretix.git
synced 2026-04-25 23:42:32 +00:00
Fix ValueError introduced in e12caf18
This commit is contained in:
@@ -58,7 +58,7 @@ def contextprocessor(request):
|
||||
ctx['new_session'] = child_sess
|
||||
request.session['event_access'] = True
|
||||
|
||||
if 'subevent' in request.GET:
|
||||
if request.GET.get('subevent', ''):
|
||||
# Do not use .get() for lazy evaluation
|
||||
ctx['selected_subevents'] = request.event.subevents.filter(pk=request.GET.get('subevent'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user