remotes/origin/stage6
Alexander Burdeinyi 9 years ago
parent 18e3717898
commit 66b9873113
  1. 7
      emencia/django/newsletter/mailer.py

@ -335,14 +335,13 @@ class NewsLetterSender(object):
logo_path = None
if obj is not None:
if prefix == 'blog':
logo = obj.get_blog_preview2()
if logo:
logo_path = logo.file_path
logo = getattr(obj.get_blog_preview2(), file_path)
else:
logo = getattr(obj, 'logo')
if not logo and not logo_path:
if not logo:
logo_path = default_storage.path('newsletter/images/no-logo.png')
else:
log.info(logo, type(logo), dir(logo))
logo_path = logo.path
try:

Loading…
Cancel
Save