Skip to content

Commit 80dc67f

Browse files
committed
Fixed pyflakes and consistency issues in person.views.profile().
- Legacy-Id: 11322
1 parent 8ba02df commit 80dc67f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/person/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def ajax_select2_search(request, model_name):
5353
return HttpResponse(select2_id_name_json(objs), content_type='application/json')
5454

5555
def profile(request, email_or_name):
56-
person = None
56+
5757
if '@' in email_or_name:
58-
person = get_object_or_404(Email, address=email_or_name).person
58+
persons = [ get_object_or_404(Email, address=email_or_name).person, ]
5959
else:
6060
aliases = Alias.objects.filter(name=email_or_name)
6161
persons = set([ a.person for a in aliases ])

0 commit comments

Comments
 (0)