Browse Source

Don't force None to "none" string.

master
Erik Stein 6 years ago
parent
commit
9bdcbcb430
  1. 2
      shared/utils/text.py

2
shared/utils/text.py

@ -19,7 +19,7 @@ def downgrade(value):
"""
Downgrade unicode to ascii, transliterating accented characters.
"""
value = force_text(value)
value = force_text(value or "")
return codecs.encode(value, 'translit/long')

Loading…
Cancel
Save