Skip to content
Snippets Groups Projects
Commit c08b1e30 authored by Yannik Ammann's avatar Yannik Ammann
Browse files

Update favtags.py

parent c06e0086
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,12 @@ def placeFavicon(context): ...@@ -24,7 +24,12 @@ def placeFavicon(context):
if not media_url: if not media_url:
raise ImproperlyConfigured('MEDIA_URL not found in settings') raise ImproperlyConfigured('MEDIA_URL not found in settings')
fav = Favicon.objects.get(isFavicon=True) fav = Favicon.objects.filter(isFavicon=True)
if not fav:
return '<!-- no favicon --'
for n in fav[1:]:
n.isFavicon = False
fav = fav[0]
''' '''
if a: if a:
fav = a[0] fav = a[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment