Skip to content

Commit f0c0753

Browse files
committed
Added email origin information to some function calls that needed it.
- Legacy-Id: 15130
1 parent a666392 commit f0c0753

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

ietf/secr/rolodex/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ def add_proceed(request):
8686

8787
# save email
8888
Email.objects.create(address=email,
89-
person=person)
89+
person=person,
90+
origin=request.user.username,
91+
)
9092

9193
# in theory a user record could exist which wasn't associated with a Person
9294
try:

ietf/submit/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def submit_existing(self, formats, change_authors=True, group_type='wg', stream_
324324
prev_author = draft.documentauthor_set.all()[0]
325325
if change_authors:
326326
# Make it such that one of the previous authors has an invalid email address
327-
bogus_person, bogus_email = ensure_person_email_info_exists(u'Bogus Person',None)
327+
bogus_person, bogus_email = ensure_person_email_info_exists(u'Bogus Person', None, draft.name)
328328
DocumentAuthor.objects.create(document=draft, person=bogus_person, email=bogus_email, order=draft.documentauthor_set.latest('order').order+1)
329329

330330
# pretend IANA reviewed it

0 commit comments

Comments
 (0)