mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-07-04 02:12:08 +02:00
Fully test registration app
This commit is contained in:
@ -10,7 +10,7 @@ class UserViewSet(ModelViewSet):
|
||||
"""
|
||||
Display list of users.
|
||||
"""
|
||||
queryset = User.objects.all()
|
||||
queryset = User.objects.order_by("id").all()
|
||||
serializer_class = UserSerializer
|
||||
filter_backends = [DjangoFilterBackend, SearchFilter]
|
||||
filterset_fields = ['id', 'first_name', 'last_name', 'email', 'is_superuser', 'is_staff', 'is_active', ]
|
||||
|
Reference in New Issue
Block a user