Fix ValueError introduced in e12caf18

This commit is contained in:
Raphael Michel
2018-02-02 15:07:53 +01:00
parent 22edc016dd
commit 8a3eaae29c

View File

@@ -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'))