From 117eac031a3458e0c64824038848622903251cfe Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Thu, 1 Mar 2012 18:06:38 +0000 Subject: [PATCH] Be a bit more careful with handling the submitter info as well as it turns out there are some (although apparently all old) entries with author_order = 0 - Legacy-Id: 4015 --- ietf/submit/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ietf/submit/utils.py b/ietf/submit/utils.py index c0eaf7596..312b974a7 100644 --- a/ietf/submit/utils.py +++ b/ietf/submit/utils.py @@ -141,10 +141,10 @@ def perform_postREDESIGN(request, submission): update_authors(draft, submission) # new revision event - try: - a = submission.tempidauthors_set.get(author_order=0) - submitter = ensure_person_email_info_exists(a).person - except TempIdAuthors.DoesNotExist: + a = submission.tempidauthors_set.filter(author_order=0) + if a: + submitter = ensure_person_email_info_exists(a[0]).person + else: submitter = system e = NewRevisionDocEvent(type="new_revision", doc=draft, rev=draft.rev)