From: artunit Date: Mon, 24 Nov 2008 21:28:54 +0000 (+0000) Subject: git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@44 6d9bc8c9-1ec2-4278... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3abf074157a8efda17bc37a286b4eb4b6d5d8bab;p=Syrup.git git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@44 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/conifer/syrup/views.py b/conifer/syrup/views.py index fe2990a..2d74f74 100644 --- a/conifer/syrup/views.py +++ b/conifer/syrup/views.py @@ -49,7 +49,7 @@ def instructors(request): action = request.GET.get('action', 'browse') if action == 'join': paginator = Paginator(models.UserProfile.objects.filter(instructor=True). - select_related('user').order_by('-user__last_name','-user__first_name'), count) + select_related('user').filter(user__is_active=True).order_by('-user__last_name','-user__first_name'), count) elif action == 'drop': paginator = Paginator(models.Course.objects.filter(moderated=False), count) else: