mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
Release tweaks
This commit is contained in:
parent
cd86aa5bc7
commit
675fd11bd0
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user