Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b24c6010d2 | |||
| bb2dd77646 |
@@ -107,8 +107,13 @@ 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:
|
||||||
return
|
# django-storages compatibility
|
||||||
|
try:
|
||||||
|
if os.path.isfile(self.logo.path):
|
||||||
|
return
|
||||||
|
except NotImplementedError:
|
||||||
|
return
|
||||||
|
|
||||||
logo_filename = 'logo-django.svg'
|
logo_filename = 'logo-django.svg'
|
||||||
logo_path = os.path.normpath(os.path.dirname(__file__) + '/data/' + logo_filename)
|
logo_path = os.path.normpath(os.path.dirname(__file__) + '/data/' + logo_filename)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
__version__ = '0.4.2'
|
__version__ = '0.4.3'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user