Skip to content

Commit b1440e8

Browse files
committed
Added assingment of the person.name_from_draft field on draft submission. To be used to replace the content of person.name if someone requires removal of consent-based name info.
- Legacy-Id: 15178
1 parent aa1e421 commit b1440e8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ietf/submit/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,12 @@ def ensure_person_email_info_exists(name, email, docname):
437437
if not person:
438438
person = Person()
439439
person.name = name
440+
person.name_from_draft = name
440441
log.assertion('isinstance(person.name, six.text_type)')
441442
person.ascii = unidecode_name(person.name).decode('ascii')
442443
person.save()
444+
else:
445+
person.name_from_draft = name
443446

444447
# make sure we have an email address
445448
if addr and (addr.startswith('unknown-email-') or is_valid_email(addr)):

0 commit comments

Comments
 (0)