fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
67a40d0
)
fix preview for en
author
Jan Szejko
<janek37@gmail.com>
Mon, 19 Dec 2016 09:25:03 +0000
(10:25 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Mon, 19 Dec 2016 09:25:03 +0000
(10:25 +0100)
apps/organizations/models.py
patch
|
blob
|
history
diff --git
a/apps/organizations/models.py
b/apps/organizations/models.py
index
0761b66
..
6a7aa7a
100644
(file)
--- 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