From f0c0753e28c08f60f5c3d27076fdc7ba90b30a3b Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sat, 5 May 2018 12:49:10 +0000 Subject: [PATCH] Added email origin information to some function calls that needed it. - Legacy-Id: 15130 --- ietf/secr/rolodex/views.py | 4 +++- ietf/submit/tests.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ietf/secr/rolodex/views.py b/ietf/secr/rolodex/views.py index 03f8fc48a..be3cd5b02 100644 --- a/ietf/secr/rolodex/views.py +++ b/ietf/secr/rolodex/views.py @@ -86,7 +86,9 @@ def add_proceed(request): # save email Email.objects.create(address=email, - person=person) + person=person, + origin=request.user.username, + ) # in theory a user record could exist which wasn't associated with a Person try: diff --git a/ietf/submit/tests.py b/ietf/submit/tests.py index 57420620b..d4e3746c7 100644 --- a/ietf/submit/tests.py +++ b/ietf/submit/tests.py @@ -324,7 +324,7 @@ class SubmitTests(TestCase): prev_author = draft.documentauthor_set.all()[0] if change_authors: # Make it such that one of the previous authors has an invalid email address - bogus_person, bogus_email = ensure_person_email_info_exists(u'Bogus Person',None) + bogus_person, bogus_email = ensure_person_email_info_exists(u'Bogus Person', None, draft.name) DocumentAuthor.objects.create(document=draft, person=bogus_person, email=bogus_email, order=draft.documentauthor_set.latest('order').order+1) # pretend IANA reviewed it