Fix: "checked" on radio btn in search form
This commit is contained in:
parent
f74578d26a
commit
82d25810a8
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@
|
||||||
{% for radio in form.mature %}
|
{% for radio in form.mature %}
|
||||||
<div class="form-check form-check-inline">
|
<div class="form-check form-check-inline">
|
||||||
<label for="{{ radio.id_for_label }}">{{ radio.choice_label }}</label>
|
<label for="{{ radio.id_for_label }}">{{ radio.choice_label }}</label>
|
||||||
<input class="form-check-input" type="radio" name="mature" value="{{ radio.data.value }}" id="{{ radio.id_for_label }}" {% if radio.data.value == form.mature.initial %}checked{% endif %}>
|
<input class="form-check-input" type="radio" name="mature" value="{{ radio.data.value }}" id="{{ radio.id_for_label }}" {% if radio.data.selected %}checked{% endif %}>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue