leaderboard ranking

This commit is contained in:
abutalib-kiwi
2023-08-11 13:35:12 +05:30
parent 0a8c2cf56d
commit af8ea39200
5 changed files with 109 additions and 4 deletions

View File

@ -34,7 +34,7 @@ class UserManagementViewSet(GenericViewSet, mixins.ListModelMixin,
is_superuser=False).prefetch_related('guardian_profile',
'junior_profile'
).exclude(junior_profile__isnull=True,
guardian_profile__isnull=True).order_by('date_joined')
guardian_profile__isnull=True).order_by('-date_joined')
filter_backends = (SearchFilter,)
search_fields = ['first_name', 'last_name']
http_method_names = ['get', 'post', 'patch']