[open-ils-commits] r42 - servres/trunk/conifer/syrup
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 24 16:25:55 EST 2008
Author: artunit
Date: 2008-11-24 16:25:51 -0500 (Mon, 24 Nov 2008)
New Revision: 42
Modified:
servres/trunk/conifer/syrup/views.py
Log:
Modified: servres/trunk/conifer/syrup/views.py
===================================================================
--- servres/trunk/conifer/syrup/views.py 2008-11-24 20:05:45 UTC (rev 41)
+++ servres/trunk/conifer/syrup/views.py 2008-11-24 21:25:51 UTC (rev 42)
@@ -48,7 +48,8 @@
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:
More information about the open-ils-commits
mailing list