Created
July 8, 2019 12:44
-
-
Save akshar-raaj/7aee308a957e656dd887514dd5b1abb6 to your computer and use it in GitHub Desktop.
DynamicSearchFilter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class DynamicSearchFilter(filters.SearchFilter): | |
| def get_search_fields(self, view, request): | |
| return request.GET.getlist('search_fields', []) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment