Revert "Add filtering to component API"
This reverts commit 76c79403f2
.
This commit is contained in:
parent
76c79403f2
commit
3b1eb6118f
@ -57,9 +57,8 @@ class PartsComponentTypeViewSet(viewsets.ModelViewSet):
|
||||
queryset = parts_models.ComponentType.objects.all()
|
||||
serializer_class = ComponentTypeSerializer
|
||||
permission_classes = [permissions.DjangoModelPermissions]
|
||||
filter_backends = [filters.SearchFilter, django_filters.rest_framework.DjangoFilterBackend]
|
||||
filter_backends = [filters.SearchFilter]
|
||||
search_fields = ['class_name']
|
||||
filterset_fields = ['id', 'name']
|
||||
|
||||
class PartsComponentParameterTypeViewSet(viewsets.ModelViewSet):
|
||||
queryset = parts_models.ComponentParameterType.objects.all()
|
||||
|
Loading…
Reference in New Issue
Block a user