From 91916a4db14cd6a06aca13fb9a46fc667f6c0682 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 30 Sep 2020 13:47:06 +0100 Subject: [PATCH] Fix NullBooleanField warning (#7565) The argument to Field is 'allow_null'. --- rest_framework/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/fields.py b/rest_framework/fields.py index f218713f1..fdfba13f2 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -749,7 +749,7 @@ class NullBooleanField(BooleanField): warnings.warn( "The `NullBooleanField` is deprecated and will be removed starting " "with 3.14. Instead use the `BooleanField` field and set " - "`null=True` which does the same thing.", + "`allow_null=True` which does the same thing.", RemovedInDRF314Warning, stacklevel=2 )