Fixed default theme logo reset if the logo exists
This commit is contained in:
1 parent
c3cf8e4d10
commit
a09e13fb00
2 files changed
+19
-1
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user