Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tommygonzaleza authored Aug 4, 2023
1 parent 5206821 commit fbd7d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion breathecode/admissions/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def get(self, request, format=None, cohort_id=None, user_id=None, academy_id=Non
if users is not None:
items = items.filter(user__id__in=users.split(','))

items = items.order_by(request.GET.get('sort', '-role'))
items = items.order_by(request.GET.get('sort', '-created_at'))

except Exception as e:
raise ValidationException(str(e), 400)
Expand Down

0 comments on commit fbd7d37

Please sign in to comment.