File tree 3 files changed +21
-0
lines changed
3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,16 @@ class PublisherSearchView(generics.ListAPIView):
143
143
144
144
---
145
145
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
+
146
156
## Funding
147
157
148
158
REST framework is a * collaboratively funded project* . If you use
Original file line number Diff line number Diff line change @@ -60,3 +60,13 @@ See Pull Request [#7522](https://github.com/encode/django-rest-framework/pull/75
60
60
## Minor fixes and improvements
61
61
62
62
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.
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ Date: 28th September 2020
157
157
* Fix ` PrimaryKeyRelatedField ` and ` HyperlinkedRelatedField ` when source field is actually a property. [ #7142 ]
158
158
* ` Token.generate_key ` is now a class method. [ #7502 ]
159
159
* ` @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 ]
160
161
161
162
---
162
163
You can’t perform that action at this time.
0 commit comments