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