mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Fix NullBooleanField warning (#7565)
The argument to Field is 'allow_null'.
This commit is contained in:
parent
be87eb43b3
commit
91916a4db1
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user