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):