Add comment regarding Student Project sorting on Organization home page.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Fri, 22 May 2009 09:40:53 +0200
changeset 2332 2a6071255146
parent 2331 91379f6b8fcb
child 2333 221482a54238
child 2334 6f5f6a9965c6
Add comment regarding Student Project sorting on Organization home page.
app/soc/views/models/organization.py
--- a/app/soc/views/models/organization.py	Thu May 21 14:44:41 2009 +0200
+++ b/app/soc/views/models/organization.py	Fri May 22 09:40:53 2009 +0200
@@ -554,6 +554,9 @@
       ap_list = lists.getListContent(request, ap_params, filter, idx=0,
                                      need_content=True)
 
+      # This is a temporary fix for sorting Student Projects 
+      # by Student name until we have a view that default 
+      # sorts it self by name (right now we can't do such query)
       ap_list['data'].sort(key=lambda sp: sp.student.name().lower())
       
       contents = []