Do no try retrieve extra information if previous errors have been detected. See #581
- Legacy-Id: 2809
This commit is contained in:
parent
4dc753329f
commit
a6dc8912e3
|
@ -76,11 +76,11 @@ def get_info(request):
|
|||
'poc': [i.email() for i in to_entity.get_poc()],
|
||||
'needs_approval': from_entity.needs_approval(person=person),
|
||||
'post_only': from_entity.post_only(person=person, user=request.user)})
|
||||
if is_secretariat(request.user):
|
||||
full_list = [(i.pk, i.email()) for i in from_entity.full_user_list()]
|
||||
full_list.sort(lambda x,y: cmp(x[1], y[1]))
|
||||
full_list = [(person.pk, person.email())] + full_list
|
||||
result.update({'full_list': full_list})
|
||||
if is_secretariat(request.user):
|
||||
full_list = [(i.pk, i.email()) for i in from_entity.full_user_list()]
|
||||
full_list.sort(lambda x,y: cmp(x[1], y[1]))
|
||||
full_list = [(person.pk, person.email())] + full_list
|
||||
result.update({'full_list': full_list})
|
||||
json_result = simplejson.dumps(result)
|
||||
return HttpResponse(json_result, mimetype='text/javascript')
|
||||
|
||||
|
|
Loading…
Reference in a new issue