do not empty null equivs
This commit is contained in:
parent
a3ffae8322
commit
85f0820005
|
@ -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():
|
||||
|
|
Reference in New Issue