-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Fix 1.10 deprecation warnings #4505
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
Conversation
Adding comment from original PR: btw - there are two remaining deprecation warnings regarding the use of
Not sure how to fix these, and tbh I'm not too worried about it as it's internal to the test suite. |
@@ -124,22 +138,8 @@ def test_api_exception_rollback_transaction(self): | |||
connection.features.uses_savepoints, | |||
"'atomic' requires transactions and savepoints." | |||
) | |||
@override_settings(ROOT_URLCONF='tests.test_atomic_requests') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, this test did not fail despite the urls property having been fully deprecated in 1.10
Now merged into |
Sorry to recreate #4488 - had to switch branches.
Description
Fixes a number of deprecation warnings generated by DRF. The to-many fix is the only one that really concerns me, as it makes a call to
model_meta.get_field_info
. Not sure if there's a better way to pass that information to thecreate
/update
methods.There isn't really an easy way to test this without manually running the tests with the
-Werror
flag. That said, django-guardian also generates a number of warnings too. Just to test it out, you can install my fork, which has the fixes applied.