Commit 3f23b487 authored by Michal Čihař's avatar Michal Čihař

Fix condition

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 16bd41e7
......@@ -209,7 +209,7 @@ class PluralTextarea(forms.Textarea):
break
ret.append(data.get(fieldname, ''))
ret = [smart_unicode(r.replace('\r', '')) for r in ret]
if len(ret) == 0:
if len(ret) == 1:
return ret[0]
return ret
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment