Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullBooleanField is deprecated in favor of BooleanField(allow_null=True) #280

Open
nikolaik opened this issue Dec 23, 2020 · 0 comments
Open

Comments

@nikolaik
Copy link

nikolaik commented Dec 23, 2020

With djangorestframework>=3.12 we can now observe the following warning:

(...)/site-packages/rest_framework_mongoengine/serializers.py:355: RemovedInDRF314Warning: The `NullBooleanField` is deprecated and will be removed starting with 3.14. Instead use the `BooleanField` field and set `allow_null=True` which does the same thing.
    fields[field_name] = field_class(**field_kwargs)

See the corresponding PR in DRF here encode/django-rest-framework#7122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant