From 227a426bfd953c8962fdb35fde78a757ed53b9c0 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Tue, 22 Nov 2011 18:59:56 +0000 Subject: [PATCH] Fix merge-related bug - Legacy-Id: 3684 --- ietf/wgchairs/forms.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ietf/wgchairs/forms.py b/ietf/wgchairs/forms.py index 232010bda..12afdd617 100644 --- a/ietf/wgchairs/forms.py +++ b/ietf/wgchairs/forms.py @@ -229,8 +229,6 @@ class AddDelegateForm(RelatedWGForm): return self.next_form def get_person(self, email): - if settings.USE_DB_REDESIGN_PROXY_CLASSES: - raise NotImplementedError persons = PersonOrOrgInfo.objects.filter(emailaddress__address=email).filter( Q(iesglogin__isnull=False)| Q(legacywgpassword__isnull=False)| @@ -256,7 +254,7 @@ class AddDelegateForm(RelatedWGForm): return else: try: - person = PersonOrOrgInfo.objects.filter(emailaddress__address=email).distinct().get() + person = self.get_person(email) except PersonOrOrgInfo.DoesNotExist: self.next_form = NotExistDelegateForm(wg=self.wg, user=self.user, email=email, shepherd=self.shepherd) self.next_form.set_message('doesnotexist', 'There is no user with this email allowed to login to the system')