# HG changeset patch # User Pawel Solyga # Date 1242978053 -7200 # Node ID 2a60712551466713bbe4e85cf4b43b20125b16fd # Parent 91379f6b8fcb4aab0d5fda2d3b38b103e7994fe1 Add comment regarding Student Project sorting on Organization home page. diff -r 91379f6b8fcb -r 2a6071255146 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 = []