mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 11:00:13 +03:00
Remove conflicting false/null values
This commit is contained in:
parent
adad580e85
commit
6ae709a43f
|
@ -674,7 +674,7 @@ class BooleanField(Field):
|
|||
'0', 0, 0.0,
|
||||
False
|
||||
}
|
||||
NULL_VALUES = {'n', 'N', 'null', 'Null', 'NULL', '', None}
|
||||
NULL_VALUES = {'null', 'Null', 'NULL', '', None}
|
||||
|
||||
def to_internal_value(self, data):
|
||||
try:
|
||||
|
@ -719,7 +719,7 @@ class NullBooleanField(Field):
|
|||
'0', 0, 0.0,
|
||||
False
|
||||
}
|
||||
NULL_VALUES = {'n', 'N', 'null', 'Null', 'NULL', '', None}
|
||||
NULL_VALUES = {'null', 'Null', 'NULL', '', None}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
assert 'allow_null' not in kwargs, '`allow_null` is not a valid option.'
|
||||
|
|
Loading…
Reference in New Issue
Block a user