Skip to content

Commit 6c0f4b3

Browse files
committed
Resolved issue where partially entered IPR related document info causes 500 error. Commit ready for merge.
- Legacy-Id: 10078
1 parent 1617a2d commit 6c0f4b3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/ipr/forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def clean(self):
9191
return self.cleaned_data
9292

9393
class DraftForm(forms.ModelForm):
94-
document = SearchableDocAliasField(label="I-D name/RFC number", required=False, doc_type="draft")
95-
94+
document = SearchableDocAliasField(label="I-D name/RFC number", required=True, doc_type="draft")
95+
9696
class Meta:
9797
model = IprDocRel
9898
fields = '__all__'

ietf/templates/ipr/details_edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ <h2>{% cycle section %}. IETF document or other contribution to which this IPR d
138138

139139
<div class="col-md-6">
140140
{{ draft_form.id }}
141-
{{ draft_form.document }}
141+
{{ draft_form.document }}{% if draft_form.document.errors %}<div class="alert alert-danger">{{ draft_form.document.errors }}</div>{% endif %}
142142
</div>
143143

144144
<div class="col-md-2">

0 commit comments

Comments
 (0)