Errors on ViewSets with no filterset_class provided
ferndot opened this issue · 1 comments
ferndot commented
Issue:
This line is causing ViewSets without a filterset_class
to break:
It returns:
TypeError: issubclass() arg 1 must be a class
Example ViewSet from my project:
I am using the rest_framework_filters.backends.RestFrameworkFilterBackend
globally.
class SavedSearchViewSet(viewsets.ModelViewSet):
"""
View or edit saved searches.
"""
queryset = models.SavedSearch.objects.all()
serializer_class = serializers.SavedSearchSerializer
rpkilby commented
Thanks!