equal
deleted
inserted
replaced
496 'status': ['accepted', 'mid_term_passed', 'passed']} |
496 'status': ['accepted', 'mid_term_passed', 'passed']} |
497 |
497 |
498 ap_list = lists.getListContent(request, ap_params, filter, idx=0, |
498 ap_list = lists.getListContent(request, ap_params, filter, idx=0, |
499 need_content=True) |
499 need_content=True) |
500 |
500 |
501 # this is a temporary fix for sorting Student Projects |
|
502 # by Student name until we have a view that default |
|
503 # sorts it self by name (right now we can't do such query) |
|
504 ap_list['data'].sort(key=lambda sp: sp.student.name().lower()) |
|
505 |
|
506 contents = [] |
501 contents = [] |
507 |
502 |
508 if ap_list: |
503 if ap_list: |
|
504 # this is a temporary fix for sorting Student Projects |
|
505 # by Student name until we have a view that default |
|
506 # sorts it self by name (right now we can't do such query) |
|
507 ap_list['data'].sort(key=lambda sp: sp.student.name().lower()) |
|
508 |
509 contents.append(ap_list) |
509 contents.append(ap_list) |
510 |
510 |
511 # construct the list and put it into the context |
511 # construct the list and put it into the context |
512 context['list'] = soc.logic.lists.Lists(contents) |
512 context['list'] = soc.logic.lists.Lists(contents) |
513 |
513 |