Skip to content

Commit

Permalink
feat(settings): Add API filter and search
Browse files Browse the repository at this point in the history
ref: #341
  • Loading branch information
jon-nfc committed Oct 5, 2024
1 parent 4afd06d commit f98664c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
'django.contrib.staticfiles',
'rest_framework',
'rest_framework_json_api',
'django_filters',
'social_django',
'django_celery_results',
'core.apps.CoreConfig',
Expand Down Expand Up @@ -258,7 +259,9 @@
# ),
'DEFAULT_METADATA_CLASS': 'rest_framework_json_api.metadata.JSONAPIMetadata',
'DEFAULT_FILTER_BACKENDS': (
'rest_framework_json_api.filters.QueryParameterValidationFilter',
# 'rest_framework_json_api.filters.QueryParameterValidationFilter',
'rest_framework.filters.SearchFilter',
'rest_framework_json_api.django_filters.DjangoFilterBackend',
'rest_framework_json_api.filters.OrderingFilter',
'rest_framework_json_api.django_filters.DjangoFilterBackend',
'rest_framework.filters.SearchFilter',
Expand Down

0 comments on commit f98664c

Please sign in to comment.