Fixed default theme logo reset if the logo exists

This commit is contained in:
Fabio Caccamo committed 2017-05-16 18:36:39 +02:00
1 parent c3cf8e4d10
commit a09e13fb00
2 files changed
+19 -1

No files matched your search

+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'