Fixed default theme logo reset if the logo exists
This commit is contained in:
@@ -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