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
dbfc65b7
Commit
dbfc65b7
authored
3 years ago
by
Hangzhi Yu
Browse files
Options
Downloads
Patches
Plain Diff
Rename config variable in Favicon model
parent
4f0fd00f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3
Resolve "Favicons are recreated on every request"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
favicon/models.py
+2
-2
2 additions, 2 deletions
favicon/models.py
with
2 additions
and
2 deletions
favicon/models.py
+
2
−
2
View file @
dbfc65b7
...
...
@@ -85,8 +85,8 @@ class Favicon(models.Model):
# Check whether favicons are missing
new_favicons
=
[]
for
rel
in
config
:
for
size
in
config
[
rel
]:
for
rel
in
config
_override
:
for
size
in
config
_override
[
rel
]:
if
not
(
rel
,
size
)
in
found
:
fav
=
FaviconImg
(
faviconFK
=
self
,
size
=
size
,
rel
=
rel
)
fav
.
generate_image
()
...
...
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