Skip to content

Commit

Permalink
Resolved issue where partially entered IPR related document info caus…
Browse files Browse the repository at this point in the history
…es 500 error. Commit ready for merge.

 - Legacy-Id: 10078
  • Loading branch information
rpcross committed Sep 14, 2015
1 parent 1617a2d commit 6c0f4b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ietf/ipr/forms.py
Expand Up @@ -91,8 +91,8 @@ def clean(self):
return self.cleaned_data

class DraftForm(forms.ModelForm):
document = SearchableDocAliasField(label="I-D name/RFC number", required=False, doc_type="draft")
document = SearchableDocAliasField(label="I-D name/RFC number", required=True, doc_type="draft")

class Meta:
model = IprDocRel
fields = '__all__'
Expand Down
2 changes: 1 addition & 1 deletion ietf/templates/ipr/details_edit.html
Expand Up @@ -138,7 +138,7 @@ <h2>{% cycle section %}. IETF document or other contribution to which this IPR d

<div class="col-md-6">
{{ draft_form.id }}
{{ draft_form.document }}
{{ draft_form.document }}{% if draft_form.document.errors %}<div class="alert alert-danger">{{ draft_form.document.errors }}</div>{% endif %}
</div>

<div class="col-md-2">
Expand Down

0 comments on commit 6c0f4b3

Please sign in to comment.