diff --git a/docs/topics/3.6-announcement.md b/docs/topics/3.6-announcement.md index 152fa945a..9ce9340af 100644 --- a/docs/topics/3.6-announcement.md +++ b/docs/topics/3.6-announcement.md @@ -147,16 +147,14 @@ For more information see the [Python client library documentation][py-docs]. ### DjangoFilterBackend -The functionality of the built-in `DjangoFilterBackend` is now completely -included by the `django-filter` package. +The 3.5 "pending deprecation" warning of the built-in `DjangoFilterBackend` has now +been escalated to a "deprecated" warning. You should change your imports and REST framework filter settings as follows: * `rest_framework.filters.DjangoFilterBackend` becomes `django_filters.rest_framework.DjangoFilterBackend`. * `rest_framework.filters.FilterSet` becomes `django_filters.rest_framework.FilterSet`. -The existing imports will continue to work but are now pending deprecation. - --- ## What's next diff --git a/tests/test_filters.py b/tests/test_filters.py index 7db5da63f..9b5011175 100644 --- a/tests/test_filters.py +++ b/tests/test_filters.py @@ -180,7 +180,7 @@ class IntegrationTestFiltering(CommonFilteringTestCase): assert response.status_code == status.HTTP_200_OK assert response.data == self.data - self.assertTrue(issubclass(w[-1].category, PendingDeprecationWarning)) + self.assertTrue(issubclass(w[-1].category, DeprecationWarning)) self.assertIn("'rest_framework.filters.DjangoFilterBackend' is pending deprecation.", str(w[-1].message)) @unittest.skipUnless(django_filters, 'django-filter not installed')