From fcd8f5511791ac4347fd9aa05cee9456f31c2d2a Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 9 Jun 2016 21:48:04 +0000 Subject: [PATCH] Added person.plain_name() to the name aliases. - Legacy-Id: 11297 --- ietf/ietfauth/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/ietfauth/views.py b/ietf/ietfauth/views.py index f5296643d..7c7649e66 100644 --- a/ietf/ietfauth/views.py +++ b/ietf/ietfauth/views.py @@ -224,7 +224,7 @@ def profile(request): # Make sure the alias table contains any new and/or old names. existing_aliases = set(Alias.objects.filter(person=person).values_list("name", flat=True)) - curr_names = set(x for x in [updated_person.name, updated_person.ascii, updated_person.ascii_short] if x) + curr_names = set(x for x in [updated_person.name, updated_person.ascii, updated_person.ascii_short, updated_person.plain_name(), ] if x) new_aliases = curr_names - existing_aliases for name in new_aliases: Alias.objects.create(person=updated_person, name=name)