From: Jan Szejko Date: Mon, 19 Dec 2016 09:25:03 +0000 (+0100) Subject: fix preview for en X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/27bed5683e1619659c96f6ca58dd42cf49be4c67?hp=67a40d0e0c6b359b3855e256551ed1b8aece64c3 fix preview for en --- diff --git a/apps/organizations/models.py b/apps/organizations/models.py index 0761b669..6a7aa7ac 100644 --- a/apps/organizations/models.py +++ b/apps/organizations/models.py @@ -83,7 +83,7 @@ class Card(models.Model): p = getattr(self, "preview_html_%s" % lang) assert p return p - except AssertionError: + except (AssertionError, AttributeError): return self.preview_html