mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Fix comment
This commit is contained in:
parent
e39422e35f
commit
6022b9ddd4
|
@ -479,7 +479,8 @@ class CharField(WritableField):
|
||||||
if not self.allow_none:
|
if not self.allow_none:
|
||||||
return ''
|
return ''
|
||||||
else:
|
else:
|
||||||
# return None implicity because smart_text(None) == 'None'
|
# return None explicitly because smart_text(None) == 'None'
|
||||||
|
# see #1834 for details
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return smart_text(value)
|
return smart_text(value)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user