Skip to content

Commit 6ae709a

Browse files
committed
Remove conflicting false/null values
1 parent adad580 commit 6ae709a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest_framework/fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ class BooleanField(Field):
674674
'0', 0, 0.0,
675675
False
676676
}
677-
NULL_VALUES = {'n', 'N', 'null', 'Null', 'NULL', '', None}
677+
NULL_VALUES = {'null', 'Null', 'NULL', '', None}
678678

679679
def to_internal_value(self, data):
680680
try:
@@ -719,7 +719,7 @@ class NullBooleanField(Field):
719719
'0', 0, 0.0,
720720
False
721721
}
722-
NULL_VALUES = {'n', 'N', 'null', 'Null', 'NULL', '', None}
722+
NULL_VALUES = {'null', 'Null', 'NULL', '', None}
723723

724724
def __init__(self, **kwargs):
725725
assert 'allow_null' not in kwargs, '`allow_null` is not a valid option.'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy