mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54: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:
|
||||
return ''
|
||||
else:
|
||||
# return None implicity because smart_text(None) == 'None'
|
||||
# return None explicitly because smart_text(None) == 'None'
|
||||
# see #1834 for details
|
||||
return None
|
||||
|
||||
return smart_text(value)
|
||||
|
|
Loading…
Reference in New Issue
Block a user