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
ce38a77f
Commit
ce38a77f
authored
10 years ago
by
Yannik Ammann
Browse files
Options
Downloads
Patches
Plain Diff
catch
parent
b99f2cab
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/models.py
+5
-4
5 additions, 4 deletions
favicon/models.py
with
5 additions
and
4 deletions
favicon/models.py
+
5
−
4
View file @
ce38a77f
...
...
@@ -75,10 +75,11 @@ class Favicon(models.Model):
def
save
(
self
,
*
args
,
**
kwargs
):
update
=
False
orig
=
Favicon
.
objects
.
get
(
pk
=
self
.
pk
)
if
orig
.
faviconImage
is
not
self
.
faviconImage
:
orig
.
del_image
()
update
=
True
if
Favicon
.
objects
.
filter
(
pk
=
self
.
pk
):
orig
=
Favicon
.
objects
.
get
(
pk
=
self
.
pk
)
if
orig
.
faviconImage
is
not
self
.
faviconImage
:
orig
.
del_image
()
update
=
True
if
self
.
isFavicon
:
for
n
in
Favicon
.
objects
.
exclude
(
pk
=
self
.
pk
):
...
...
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