Fixed default theme logo reset if the logo exists

This commit is contained in:
Fabio Caccamo
2017-05-16 18:36:39 +02:00
parent c3cf8e4d10
commit a09e13fb00
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ class Theme(models.Model):
def set_default_logo(self):
if self.logo and os.path.isfile(self.logo.url):
if self.logo and os.path.isfile(self.logo.path):
return
logo_filename = 'logo-django.svg'