Skip to content

Commit

Permalink
Update settings to support DRF 3.7 with filter backend
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikek committed Dec 7, 2017
1 parent 459f8b6 commit 5383f36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ESSArch_EPP/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@
),
'DEFAULT_FILTER_BACKENDS': (
#'rest_framework_filters.backends.DjangoFilterBackend',
'rest_framework.filters.DjangoFilterBackend',
#'rest_framework.filters.DjangoFilterBackend', # djangorestframework-3.6.3
'django_filters.rest_framework.DjangoFilterBackend', # djangorestframework-3.7.0
),
}

Expand Down
4 changes: 3 additions & 1 deletion ESSArch_EPP/config/settings_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,12 @@
),
'DEFAULT_FILTER_BACKENDS': (
#'rest_framework_filters.backends.DjangoFilterBackend',
'rest_framework.filters.DjangoFilterBackend',
#'rest_framework.filters.DjangoFilterBackend', # djangorestframework-3.6.3
'django_filters.rest_framework.DjangoFilterBackend', # djangorestframework-3.7.0
),
}


'''
Problem with rest_framework_filters.backends.DjangoFilterBackend version 0.5 and DRF 3.3.0:
TypeError at /api/aicobjects/
Expand Down

0 comments on commit 5383f36

Please sign in to comment.