From 27bed5683e1619659c96f6ca58dd42cf49be4c67 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Mon, 19 Dec 2016 10:25:03 +0100 Subject: [PATCH 1/1] fix preview for en --- apps/organizations/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1