Skip to content

Commit

Permalink
fix(api): remove filterset from profile view
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace committed Nov 14, 2024
1 parent c7cf50b commit 6f680d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/backend/apps/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ class ProfileViewSet(viewsets.ModelViewSet):
queryset = Profile.objects.all()
serializer_class = ProfileSerializer
filter_backends = (filters.SearchFilter,)
filterset_fields = ('username', 'user__email')
search_fields = ('username', 'user__email')
search_fields = ('username',)


class LoginView(KnoxLoginView):
Expand Down

0 comments on commit 6f680d7

Please sign in to comment.