Compare commits

..

2 Commits

Author SHA1 Message Date
Fabio Caccamo b24c6010d2 Updated version 2017-05-18 10:56:19 +02:00
Fabio Caccamo bb2dd77646 Fixed django-storages compatibility - #16 2017-05-18 10:56:06 +02:00
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -107,8 +107,13 @@ class Theme(models.Model):
def set_default_logo(self):
if self.logo and os.path.isfile(self.logo.path):
return
if self.logo:
# django-storages compatibility
try:
if os.path.isfile(self.logo.path):
return
except NotImplementedError:
return
logo_filename = 'logo-django.svg'
logo_path = os.path.normpath(os.path.dirname(__file__) + '/data/' + logo_filename)
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
__version__ = '0.4.2'
__version__ = '0.4.3'