Correctly set region on organizer profile page

This commit is contained in:
Raphael Michel
2021-04-19 17:49:53 +02:00
parent 35fbefe2bd
commit 9f9d047293

View File

@@ -169,6 +169,9 @@ def _detect_event(request, require_live=True, require_plugin=None):
for receiver, response in process_request.send(request.event, request=request):
if response:
return response
elif hasattr(request, 'organizer'):
# Restrict locales to the ones available for this organizer
LocaleMiddleware().process_request(request)
except Event.DoesNotExist:
try: