We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ae5776 commit 2b50bfdCopy full SHA for 2b50bfd
1 file changed
ietf/liaisons/views.py
@@ -77,8 +77,11 @@ def get_info(request):
77
'needs_approval': from_entity.needs_approval(person=person),
78
'post_only': from_entity.post_only(person=person, user=request.user)})
79
if is_secretariat(request.user):
80
- full_list = [(i.pk, i.email()) for i in from_entity.full_user_list()]
81
- full_list.sort(lambda x,y: cmp(x[1], y[1]))
+ if from_entity:
+ full_list = [(i.pk, i.email()) for i in from_entity.full_user_list()]
82
+ full_list.sort(lambda x,y: cmp(x[1], y[1]))
83
+ else:
84
+ full_list = []
85
full_list = [(person.pk, person.email())] + full_list
86
result.update({'full_list': full_list})
87
json_result = simplejson.dumps(result)
0 commit comments