mirror of https://github.com/snachodog/mybuddy.git
Add DRF's OrderingFilter to list of default filter backends to implement ordering in the API
This commit is contained in:
parent
fc3be38c4c
commit
ac19f30173
|
@ -310,6 +310,7 @@ REST_FRAMEWORK = {
|
||||||
],
|
],
|
||||||
"DEFAULT_FILTER_BACKENDS": [
|
"DEFAULT_FILTER_BACKENDS": [
|
||||||
"django_filters.rest_framework.DjangoFilterBackend",
|
"django_filters.rest_framework.DjangoFilterBackend",
|
||||||
|
"rest_framework.filters.OrderingFilter",
|
||||||
],
|
],
|
||||||
"DEFAULT_METADATA_CLASS": "api.metadata.APIMetadata",
|
"DEFAULT_METADATA_CLASS": "api.metadata.APIMetadata",
|
||||||
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.LimitOffsetPagination",
|
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.LimitOffsetPagination",
|
||||||
|
|
Loading…
Reference in New Issue