Allow signal receivers of footer_link to add multiple links

This commit is contained in:
Raphael Michel
2017-01-09 20:23:00 +01:00
parent ffa35a9b9b
commit ec90efbf4a

View File

@@ -41,7 +41,10 @@ def contextprocessor(request):
for receiver, response in html_head.send(request.event, request=request):
_html_head.append(response)
for receiver, response in footer_link.send(request.event, request=request):
_footer.append(response)
if isinstance(response, list):
_footer += response
else:
_footer.append(response)
if request.event.settings.presale_css_file:
ctx['css_file'] = default_storage.url(request.event.settings.presale_css_file)