From 6ae709a43f498bc5bcace543a1a31ed9c9c3f227 Mon Sep 17 00:00:00 2001 From: Ryan P Kilby Date: Thu, 13 Sep 2018 09:04:31 -0700 Subject: [PATCH] Remove conflicting false/null values --- rest_framework/fields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 44956aa04..3378de368 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -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.'