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

This commit is contained in:
Serhiy Voyt 2014-05-07 18:37:08 +03:00
parent 1ce1f387b0
commit 27be31bd8a

View File

@ -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)