Add filtering for Event and Signup ViewSets

This commit is contained in:
Aarni Halinen
2018-11-18 15:29:51 +02:00
parent 65aac3daf1
commit 55fdf8f60d
3 changed files with 20 additions and 1 deletions
+4
View File
@@ -103,6 +103,7 @@ INSTALLED_APPS = [
'auditlog',
'phonenumber_field',
'import_export',
'django_filters',
]
IMPORT_EXPORT_USE_TRANSACTIONS = True
@@ -234,6 +235,9 @@ REST_FRAMEWORK = {
},
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
'PAGE_SIZE': 10,
'DEFAULT_FILTER_BACKENDS': (
'django_filters.rest_framework.DjangoFilterBackend',
),
}
# Email settings (tested working with gmail)