Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Django Favicon Plus Reloaded
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
Django Favicon Plus Reloaded
Commits
c08b1e30
Commit
c08b1e30
authored
10 years ago
by
Yannik Ammann
Browse files
Options
Downloads
Patches
Plain Diff
Update favtags.py
parent
c06e0086
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
favicon/templatetags/favtags.py
+6
-1
6 additions, 1 deletion
favicon/templatetags/favtags.py
with
6 additions
and
1 deletion
favicon/templatetags/favtags.py
+
6
−
1
View file @
c08b1e30
...
@@ -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]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment