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:
Suresh Krishnan 2016-07-16 12:35:22 +00:00
parent b0880b3499
commit 0d044399e5
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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' %}