summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-03-26 17:16:45 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-03-26 17:16:45 (GMT)
commit85f0820005c8d8df2be9a2461de438fd0250e950 (patch)
treeec545c22fff8f837e1387bab807e706a97627895
parenta3ffae8322d724b9355de1225e852222509ad34f (diff)
downloadcollective.dms.thesaurus-85f0820005c8d8df2be9a2461de438fd0250e950.zip
collective.dms.thesaurus-85f0820005c8d8df2be9a2461de438fd0250e950.tar.gz
collective.dms.thesaurus-85f0820005c8d8df2be9a2461de438fd0250e950.tar.bz2
do not empty null equivs
-rw-r--r--src/collective/dms/thesaurus/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collective/dms/thesaurus/utils.py b/src/collective/dms/thesaurus/utils.py
index f1fbde1..efd9d34 100644
--- a/src/collective/dms/thesaurus/utils.py
+++ b/src/collective/dms/thesaurus/utils.py
@@ -46,7 +46,7 @@ class ImportJson(BrowserView):
raw=term.get('scope_note'),
mimeType='text/html',
outputMimeType='text/x-html-safe')
- object.equivs = term.get('equivalents')
+ object.equivs = [x for x in term.get('equivalents') or [] if x]
# 2nd step; add relations
for term_id, term in terms.items():