@@ -33,7 +33,7 @@ REST_FRAMEWORK = {
33
33
),
34
34
' DEFAULT_METADATA_CLASS' : ' rest_framework_json_api.metadata.JSONAPIMetadata' ,
35
35
' DEFAULT_FILTER_BACKENDS' : (
36
- ' rest_framework_json_api.filters.JSONAPIOrderingFilter ' ,
36
+ ' rest_framework_json_api.filters.OrderingFilter ' ,
37
37
' rest_framework_json_api.django_filters.DjangoFilterBackend' ,
38
38
),
39
39
' TEST_REQUEST_RENDERER_CLASSES' : (
@@ -104,8 +104,8 @@ class MyLimitPagination(JsonApiLimitOffsetPagination):
104
104
105
105
_ There are several anticipated JSON: API-specific filter backends in development. The first two are described below._
106
106
107
- #### ` JSONAPIOrderingFilter `
108
- ` JSONAPIOrderingFilter ` implements the [ JSON: API ` sort ` ] ( http://jsonapi.org/format/#fetching-sorting ) and uses
107
+ #### ` OrderingFilter `
108
+ ` OrderingFilter ` implements the [ JSON: API ` sort ` ] ( http://jsonapi.org/format/#fetching-sorting ) and uses
109
109
DRF's [ ordering filter] ( http://django-rest-framework.readthedocs.io/en/latest/api-guide/filtering/#orderingfilter ) .
110
110
111
111
Per the JSON: API specification, "If the server does not support sorting as specified in the query parameter ` sort ` ,
@@ -186,7 +186,7 @@ from rest_framework_json_api import django_filters
186
186
class MyViewset (ModelViewSet ):
187
187
queryset = MyModel.objects.all()
188
188
serializer_class = MyModelSerializer
189
- filter_backends = (filters.JSONAPIOrderingFilter , django_filters.DjangoFilterBackend,)
189
+ filter_backends = (filters.OrderingFilter , django_filters.DjangoFilterBackend,)
190
190
```
191
191
192
192
0 commit comments