Skip to content

Commit 0d04439

Browse files
Fixed validation of submitter name and email when they are same as the holder's info. Fixes issue ietf-tools#1971. Commit ready for merge.
- Legacy-Id: 11668
1 parent b0880b3 commit 0d04439

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/ipr/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class IprDisclosureBase(models.Model):
2020
other_designations = models.CharField("Designations for other contributions", blank=True, max_length=255)
2121
rel = models.ManyToManyField('self', through='RelatedIpr', symmetrical=False)
2222
state = models.ForeignKey(IprDisclosureStateName)
23-
submitter_name = models.CharField(max_length=255)
24-
submitter_email = models.EmailField()
23+
submitter_name = models.CharField(max_length=255,blank=True)
24+
submitter_email = models.EmailField(blank=True)
2525
time = models.DateTimeField(auto_now_add=True)
2626
title = models.CharField(blank=True, max_length=255)
2727

ietf/templates/ipr/details_edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ <h2>{% cycle section %}. Statement</h2>
226226

227227
{% endif %}
228228

229-
<h2>{% cycle section %}. Contact information of submitter of this form <small>if different from the contact information above</small></h2>
229+
<h2>{% cycle section %}. Contact information of submitter of this form</h2>
230230

231231
{% bootstrap_field form.same_as_ii_above layout='horizontal' %}
232232
{% bootstrap_field form.submitter_name layout='horizontal' %}

0 commit comments

Comments
 (0)