forms: fix comment field to respect is_hidden attribute (#38685)

This commit is contained in:
Frédéric Péters 2019-12-22 22:44:33 +01:00
parent 1ed06e1308
commit 283a37fb96
1 changed files with 1 additions and 0 deletions

View File

@ -1,4 +1,5 @@
<div {% if widget.field.id %}data-field-id="{{ widget.field.id }}"{% endif %}
{% if widget.is_hidden %}style="display: none"{% endif %}
class="comment-field {{widget.extra_css_class|default_if_none:"" }}">
{% block widget-content %}
{{ widget.content|safe }}