Add DRF's OrderingFilter to list of default filter backends to implement ordering in the API

This commit is contained in:
Brian O'Connor 2023-02-10 11:28:11 -05:00 committed by Christopher Charbonneau Wells
parent fc3be38c4c
commit ac19f30173
1 changed files with 1 additions and 0 deletions

View File

@ -310,6 +310,7 @@ REST_FRAMEWORK = {
],
"DEFAULT_FILTER_BACKENDS": [
"django_filters.rest_framework.DjangoFilterBackend",
"rest_framework.filters.OrderingFilter",
],
"DEFAULT_METADATA_CLASS": "api.metadata.APIMetadata",
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.LimitOffsetPagination",