From 6f680d70edfbb3c7a23e8b0862e4e017d4ff2430 Mon Sep 17 00:00:00 2001 From: moonlitgrace Date: Thu, 14 Nov 2024 13:48:18 +0530 Subject: [PATCH] fix(api): remove filterset from profile view --- backend/backend/apps/user/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/backend/apps/user/views.py b/backend/backend/apps/user/views.py index ae75fef3..ff0b25d6 100644 --- a/backend/backend/apps/user/views.py +++ b/backend/backend/apps/user/views.py @@ -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):