Skip to content

Commit

Permalink
feat: remove filterset is_technical and is_chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruv9449 committed Mar 27, 2024
1 parent d993b64 commit 4038116
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class OrganizationViewSet(ReadOnlyModelViewSet):
serializer_class = OrganizationDetailSerializer
pagination_class = CustomPagination
filter_backends = [SearchFilter, OrderingFilter, DjangoFilterBackend]
filterset_fields = ["is_technical", "is_chapter", "type", "sub_type"]
filterset_fields = ["type", "sub_type"]
search_fields = ["name"]
ordering_fields = ["name"]
ordering = ["name"]
Expand Down Expand Up @@ -92,7 +92,7 @@ class OrganizationAdminViewSet(ModelViewSet):
serializer_class = OrganizationDetailSerializer
pagination_class = CustomPagination
filter_backends = [SearchFilter, OrderingFilter, DjangoFilterBackend]
filterset_fields = ["is_technical", "is_chapter"]
filterset_fields = ["type", "sub_type"]
search_fields = ["name"]
ordering_fields = ["name"]
ordering = ["name"]
Expand Down

0 comments on commit 4038116

Please sign in to comment.