Skip to content

Commit 91916a4

Browse files
authored
Fix NullBooleanField warning (#7565)
The argument to Field is 'allow_null'.
1 parent be87eb4 commit 91916a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ def __init__(self, **kwargs):
749749
warnings.warn(
750750
"The `NullBooleanField` is deprecated and will be removed starting "
751751
"with 3.14. Instead use the `BooleanField` field and set "
752-
"`null=True` which does the same thing.",
752+
"`allow_null=True` which does the same thing.",
753753
RemovedInDRF314Warning, stacklevel=2
754754
)
755755

0 commit comments

Comments
 (0)