app/soc/views/models/organization.py
changeset 2334 6f5f6a9965c6
parent 2332 2a6071255146
child 2390 723dfa4811e8
equal deleted inserted replaced
2332:2a6071255146 2334:6f5f6a9965c6
   552                 'status': ['accepted', 'mid_term_passed', 'passed']}
   552                 'status': ['accepted', 'mid_term_passed', 'passed']}
   553 
   553 
   554       ap_list = lists.getListContent(request, ap_params, filter, idx=0,
   554       ap_list = lists.getListContent(request, ap_params, filter, idx=0,
   555                                      need_content=True)
   555                                      need_content=True)
   556 
   556 
   557       # This is a temporary fix for sorting Student Projects 
   557       # this is a temporary fix for sorting Student Projects 
   558       # by Student name until we have a view that default 
   558       # by Student name until we have a view that default 
   559       # sorts it self by name (right now we can't do such query)
   559       # sorts it self by name (right now we can't do such query)
   560       ap_list['data'].sort(key=lambda sp: sp.student.name().lower())
   560       ap_list['data'].sort(key=lambda sp: sp.student.name().lower())
   561       
   561       
   562       contents = []
   562       contents = []