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