[open-ils-commits] r65 - servres/trunk/conifer/syrup
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Nov 28 09:59:24 EST 2008
Author: artunit
Date: 2008-11-28 09:59:23 -0500 (Fri, 28 Nov 2008)
New Revision: 65
Modified:
servres/trunk/conifer/syrup/models.py
servres/trunk/conifer/syrup/views.py
Log:
Modified: servres/trunk/conifer/syrup/models.py
===================================================================
--- servres/trunk/conifer/syrup/models.py 2008-11-28 03:19:15 UTC (rev 64)
+++ servres/trunk/conifer/syrup/models.py 2008-11-28 14:59:23 UTC (rev 65)
@@ -252,7 +252,6 @@
def __unicode__(self):
return self.title
-
#------------------------------------------------------------
class NewsItem(m.Model):
Modified: servres/trunk/conifer/syrup/views.py
===================================================================
--- servres/trunk/conifer/syrup/views.py 2008-11-28 03:19:15 UTC (rev 64)
+++ servres/trunk/conifer/syrup/views.py 2008-11-28 14:59:23 UTC (rev 65)
@@ -149,8 +149,8 @@
count = int(request.GET.get('count', 5))
if ('q' in request.GET) and request.GET['q'].strip():
query_string = request.GET['q']
- entry_query = get_query(query_string, ['title', 'enrol_codes',])
- paginator = Paginator( models.Course.objects.filter(entry_query).order_by('-title'),
+ entry_query = get_query(query_string, ['title', 'author', 'course__title', 'course__department__name',])
+ paginator = Paginator( models.Item.objects.filter(entry_query).order_by('-date_created'),
count)
return g.render('search_results.xhtml', paginator=paginator,
More information about the open-ils-commits
mailing list