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
if value is None:
if self.default:
return self.default
else:
value
return ''
return smart_text(value)