Skip to content

Commit

Permalink
force save = Yes gitcoinco#2920
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Nov 26, 2018
1 parent 182de35 commit d48ffe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/avatar/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def __str__(self):
def save(self, *args, force_insert=False, force_update=False, **kwargs):
"""Override the save to perform change comparison against PNG and SVG fields."""
if self.svg and not self.custom_avatar_png:
self.convert_custom_svg()
self.convert_custom_svg(True)
if self.png and not self.github_svg:
self.convert_github_png()
self.convert_github_png(True)
super(Avatar, self).save(force_insert, force_update, *args, **kwargs)

def get_color(self, key='Background', with_hashbang=False):
Expand Down

0 comments on commit d48ffe9

Please sign in to comment.