After upgrading djangorestframework from djangorestframework==3.13.1 to djangorestframework==3.14.0 the code
from rest_framework.serializers import NullBooleanField
Throws
AttributeError: module 'rest_framework.serializers' has no attribute 'NullBooleanField'
Reading the release notes I don't see a deprecation. Where did it go?
For what it's worth, there's a deprecation warning in the previous version, which also suggests a fix:
The
NullBooleanFieldis deprecated and will be removed starting with 3.14. Instead use theBooleanFieldfield and setallow_null=Truewhich does the same thing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With