Merged [2782] from esanchez@yaco.es: Retrieve the person from the legacy tables of non IESG logins. Fixes #576.
- Legacy-Id: 2797
Note: SVN reference [2782] has been migrated to Git commit f0772cf415
This commit is contained in:
parent
6a5e06a773
commit
b9b25dae37
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue