Retrieve the person from the legacy tables of non IESG logins. Fixes #576

- Legacy-Id: 2782
This commit is contained in:
Emilio A. Sánchez López 2011-02-01 15:59:15 +00:00
parent de72df1d8f
commit f0772cf415

View file

@ -43,7 +43,16 @@ def find_person(username):
return person
except IESGLogin.DoesNotExist, PersonOrOrgInfo.DoesNotExist:
pass
# TODO: try LegacyWgPassword next
# try LegacyWgPassword next
try:
return LegacyWgPassword.objects.get(login_name=username).person
except LegacyWgPassword.DoesNotExist, PersonOrOrgInfo.DoesNotExist:
pass
# try LegacyLiaisonUser next
try:
return LegacyLiaisonUser.objects.get(login_name=username).person
except LegacyLiaisonUser.DoesNotExist, PersonOrOrgInfo.DoesNotExist:
pass
return None
class IetfUserProfile(models.Model):