mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Fix "None" in global footer
This commit is contained in:
@@ -28,14 +28,14 @@ def contextprocessor(request):
|
|||||||
else:
|
else:
|
||||||
pretix_settings = GlobalSettingsObject().settings
|
pretix_settings = GlobalSettingsObject().settings
|
||||||
|
|
||||||
text = str(pretix_settings.get('footer_text', as_type=LazyI18nString))
|
text = pretix_settings.get('footer_text', as_type=LazyI18nString)
|
||||||
link = str(pretix_settings.get('footer_link', as_type=LazyI18nString))
|
link = pretix_settings.get('footer_link', as_type=LazyI18nString)
|
||||||
|
|
||||||
if text:
|
if text:
|
||||||
if link:
|
if link:
|
||||||
_footer.append({'url': link, 'label': text})
|
_footer.append({'url': str(link), 'label': str(text)})
|
||||||
else:
|
else:
|
||||||
ctx['footer_text'] = text
|
ctx['footer_text'] = str(text)
|
||||||
|
|
||||||
if hasattr(request, 'event'):
|
if hasattr(request, 'event'):
|
||||||
for receiver, response in html_head.send(request.event, request=request):
|
for receiver, response in html_head.send(request.event, request=request):
|
||||||
|
|||||||
Reference in New Issue
Block a user