Fixed validation of submitter name and email when they are same as the holder's info. Fixes issue #1971. Commit ready for merge.
- Legacy-Id: 11668
This commit is contained in:
parent
b0880b3499
commit
0d044399e5
|
@ -20,8 +20,8 @@ class IprDisclosureBase(models.Model):
|
|||
other_designations = models.CharField("Designations for other contributions", blank=True, max_length=255)
|
||||
rel = models.ManyToManyField('self', through='RelatedIpr', symmetrical=False)
|
||||
state = models.ForeignKey(IprDisclosureStateName)
|
||||
submitter_name = models.CharField(max_length=255)
|
||||
submitter_email = models.EmailField()
|
||||
submitter_name = models.CharField(max_length=255,blank=True)
|
||||
submitter_email = models.EmailField(blank=True)
|
||||
time = models.DateTimeField(auto_now_add=True)
|
||||
title = models.CharField(blank=True, max_length=255)
|
||||
|
||||
|
|
|
@ -226,7 +226,7 @@
|
|||
|
||||
{% endif %}
|
||||
|
||||
<h2>{% cycle section %}. Contact information of submitter of this form <small>if different from the contact information above</small></h2>
|
||||
<h2>{% cycle section %}. Contact information of submitter of this form</h2>
|
||||
|
||||
{% bootstrap_field form.same_as_ii_above layout='horizontal' %}
|
||||
{% bootstrap_field form.submitter_name layout='horizontal' %}
|
||||
|
|
Loading…
Reference in a new issue