Fixed django-storages compatibility - #16

pull/18/head
Fabio Caccamo 2017-05-18 10:56:06 +02:00
parent 60f451d073
commit bb2dd77646
1 changed files with 7 additions and 2 deletions

View File

@ -107,7 +107,12 @@ class Theme(models.Model):
def set_default_logo(self): def set_default_logo(self):
if self.logo and os.path.isfile(self.logo.path): if self.logo:
# django-storages compatibility
try:
if os.path.isfile(self.logo.path):
return
except NotImplementedError:
return return
logo_filename = 'logo-django.svg' logo_filename = 'logo-django.svg'