Commit 27be31bd by Serhiy Voyt

In case of None value returns empty string instead of NoneType.

parent 1ce1f387
......@@ -473,10 +473,7 @@ class CharField(WritableField):
return value
if value is None:
if self.default:
return self.default
else:
value
return ''
return smart_text(value)
......
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