Skip to content

Commit ac799a9

Browse files
committed
removed requirement to enter a phone number in various places on an IPR disclosure entry form
Fixes bug ietf-tools#1176 - Legacy-Id: 6672
1 parent 0f5b59d commit ac799a9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/ipr/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class IprContact(models.Model):
151151
department = models.CharField(blank=True, max_length=255)
152152
address1 = models.CharField(blank=True, max_length=255)
153153
address2 = models.CharField(blank=True, max_length=255)
154-
telephone = models.CharField(max_length=25)
154+
telephone = models.CharField(blank=True, max_length=25)
155155
fax = models.CharField(blank=True, max_length=25)
156156
email = models.EmailField(max_length=255)
157157
def __str__(self):

ietf/ipr/new.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Meta:
3333
exclude = ('rfc_document', 'id_document_tag') # 'legacy_url_0','legacy_url_1','legacy_title_1','legacy_url_2','legacy_title_2')
3434

3535
class BaseContactForm(ModelForm):
36-
telephone = forms.RegexField(phone_re, error_message=phone_error_message)
36+
telephone = forms.RegexField(phone_re, error_message=phone_error_message, required=False)
3737
fax = forms.RegexField(phone_re, error_message=phone_error_message, required=False)
3838
class Meta:
3939
model = models.IprContact

0 commit comments

Comments
 (0)