Ooops ...

This commit is contained in:
Charles Haley 2021-05-04 20:08:49 +01:00
parent 9827755a9e
commit f6de283e7b

View File

@ -338,7 +338,7 @@ class CompositeField(OneToOneField):
vals = self.get_value_with_cache(book_id, get_metadata)
if splitter:
length = len(list(vv.strip() for vv in vals.split(splitter) if vv.strip()))
elif vals.strip:
elif vals.strip():
length = 1
else:
length = 0