Skip to content

Fix DRF deprecation warning #4

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

Merged
merged 1 commit into from
Feb 14, 2023
Merged

Fix DRF deprecation warning #4

merged 1 commit into from
Feb 14, 2023

Conversation

c-w
Copy link
Contributor

@c-w c-w commented Oct 1, 2021

Running pytest in strict mode py.test --strict-markers shows a deprecation warning from Django Rest Framework:

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.

This pull request fixes the issue by following the migration path suggested by the warning.

@sergei-maertens sergei-maertens merged commit 349991c into maykinmedia:main Feb 14, 2023
@sergei-maertens
Copy link
Member

Thank you, I've incorporated this in #5!

@c-w c-w deleted the fix-drf314-warning branch February 14, 2023 19:27
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

Successfully merging this pull request may close these issues.

2 participants