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 logo_path = None
if obj is not None: if obj is not None:
if prefix == 'blog': if prefix == 'blog':
logo = obj.get_blog_preview2() logo = getattr(obj.get_blog_preview2(), file_path)
if logo:
logo_path = logo.file_path
else: else:
logo = getattr(obj, 'logo') logo = getattr(obj, 'logo')
if not logo and not logo_path: if not logo:
logo_path = default_storage.path('newsletter/images/no-logo.png') logo_path = default_storage.path('newsletter/images/no-logo.png')
else: else:
log.info(logo, type(logo), dir(logo))
logo_path = logo.path logo_path = logo.path
try: try:

Loading…
Cancel
Save