Fix NullBooleanField warning (#7565)

The argument to Field is 'allow_null'.
This commit is contained in:
Adam Johnson 2020-09-30 13:47:06 +01:00 committed by GitHub
parent be87eb43b3
commit 91916a4db1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -749,7 +749,7 @@ class NullBooleanField(BooleanField):
warnings.warn( warnings.warn(
"The `NullBooleanField` is deprecated and will be removed starting " "The `NullBooleanField` is deprecated and will be removed starting "
"with 3.14. Instead use the `BooleanField` field and set " "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 RemovedInDRF314Warning, stacklevel=2
) )