Don't show expired instructors

This commit is contained in:
Tanner Collin 2022-04-23 21:13:46 +00:00
parent aa39c8a37a
commit 5a30f60d6e

View File

@ -113,7 +113,7 @@ class SearchViewSet(Base, Retrieve):
queryset = queryset.filter(is_director=True) queryset = queryset.filter(is_director=True)
queryset = queryset.order_by('application_date') queryset = queryset.order_by('application_date')
elif sort == 'is_instructor': elif sort == 'is_instructor':
queryset = queryset.filter(is_instructor=True) queryset = queryset.filter(paused_date__isnull=True, is_instructor=True)
queryset = queryset.order_by('application_date') queryset = queryset.order_by('application_date')
elif sort == 'due': elif sort == 'due':
queryset = queryset.filter(status='Due') queryset = queryset.filter(status='Due')