Skip to content

Commit

Permalink
Add argument to skip errorlist through knockout on common form (#3704)
Browse files Browse the repository at this point in the history
Update common knockout form field template to add argument to skip errorlist
display through knockout observables.
  • Loading branch information
agjohnson authored Mar 2, 2018
1 parent 27d9ba3 commit 4b00f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/core/templates/core/ko_form_field.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% else %}
<!-- Begin: {{ field.name }} -->
{{ field.errors }}
{% if 'data-bind' in field.field.widget.attrs %}
{% if not skip_errorlist and 'data-bind' in field.field.widget.attrs %}
<ul
class="errorlist"
data-bind="visible: error_{{ field.name }}"
Expand Down

0 comments on commit 4b00f3f

Please sign in to comment.