git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@44 6d9bc8c9-1ec2-4278...
authorartunit <artunit@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Mon, 24 Nov 2008 21:28:54 +0000 (21:28 +0000)
committerartunit <artunit@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Mon, 24 Nov 2008 21:28:54 +0000 (21:28 +0000)
conifer/syrup/views.py

index fe2990a..2d74f74 100644 (file)
@@ -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: