feat: Add CSV export of Relationships

This commit is contained in:
James Graham
2020-03-27 14:31:38 +00:00
parent 416f2fbf6c
commit af77cb39f8
2 changed files with 23 additions and 10 deletions

View File

@@ -141,6 +141,11 @@ REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated',
],
'DEFAULT_RENDERER_CLASSES': [
'rest_framework.renderers.JSONRenderer',
'rest_framework_csv.renderers.CSVRenderer',
'rest_framework.renderers.BrowsableAPIRenderer',
],
}
@@ -256,12 +261,3 @@ CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
BOOTSTRAP4 = {
'include_jquery': 'full',
}
# Django Rest Framework settings for API
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': [
'rest_framework_csv.renderers.CSVRenderer',
]
}