Sort newest members by start date
This commit is contained in:
parent
e1e98da7d8
commit
543249335f
|
@ -99,9 +99,9 @@ class SearchViewSet(Base, Retrieve):
|
|||
queryset = queryset.order_by('-vetted_date', '-id')
|
||||
elif sort == 'newest_active':
|
||||
queryset = queryset.filter(paused_date__isnull=True)
|
||||
queryset = queryset.order_by('-application_date', '-id')
|
||||
queryset = queryset.order_by('-current_start_date', '-id')
|
||||
elif sort == 'newest_overall':
|
||||
queryset = queryset.order_by('-application_date', '-id')
|
||||
queryset = queryset.order_by('-current_start_date', '-id')
|
||||
elif sort == 'oldest_active':
|
||||
queryset = queryset.filter(paused_date__isnull=True)
|
||||
queryset = queryset.order_by('application_date', 'id')
|
||||
|
|
Loading…
Reference in New Issue
Block a user