Skip to content

Commit 03e2ecc

Browse files
Add NullBooleanField deprecation to docs (encode#8999)
1 parent ff5f647 commit 03e2ecc

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

docs/community/3.12-announcement.md

+10
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,16 @@ class PublisherSearchView(generics.ListAPIView):
143143

144144
---
145145

146+
## Deprecations
147+
148+
### `serializers.NullBooleanField`
149+
150+
`serializers.NullBooleanField` is now pending deprecation, and will be removed in 3.14.
151+
152+
Instead use `serializers.BooleanField` field and set `allow_null=True` which does the same thing.
153+
154+
---
155+
146156
## Funding
147157

148158
REST framework is a *collaboratively funded project*. If you use

docs/community/3.14-announcement.md

+10
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,13 @@ See Pull Request [#7522](https://github.com/encode/django-rest-framework/pull/75
6060
## Minor fixes and improvements
6161

6262
There are a number of minor fixes and improvements in this release. See the [release notes](release-notes.md) page for a complete listing.
63+
64+
---
65+
66+
## Deprecations
67+
68+
### `serializers.NullBooleanField`
69+
70+
`serializers.NullBooleanField` was moved to pending deprecation in 3.12, and deprecated in 3.13. It has now been removed from the core framework.
71+
72+
Instead use `serializers.BooleanField` field and set `allow_null=True` which does the same thing.

docs/community/release-notes.md

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ Date: 28th September 2020
157157
* Fix `PrimaryKeyRelatedField` and `HyperlinkedRelatedField` when source field is actually a property. [#7142]
158158
* `Token.generate_key` is now a class method. [#7502]
159159
* `@action` warns if method is wrapped in a decorator that does not preserve information using `@functools.wraps`. [#7098]
160+
* Deprecate `serializers.NullBooleanField` in favour of `serializers.BooleanField` with `allow_null=True` [#7122]
160161

161162
---
162163

0 commit comments

Comments
 (0)