Fix #1211 -- Locale selection on organizer profile

This commit is contained in:
Raphael Michel
2019-05-01 12:53:44 +02:00
parent e5c2470fde
commit 2b145e254b
2 changed files with 12 additions and 0 deletions

View File

@@ -64,6 +64,8 @@ def contextprocessor(request):
if request.resolver_match:
ctx['cart_namespace'] = request.resolver_match.kwargs.get('cart_namespace', '')
elif hasattr(request, 'organizer'):
ctx['languages'] = [get_language_info(code) for code in request.organizer.settings.locales]
if hasattr(request, 'organizer'):
if request.organizer.settings.presale_css_file and not hasattr(request, 'event'):