Don't show expired instructors
This commit is contained in:
parent
aa39c8a37a
commit
5a30f60d6e
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user