Fix: "checked" on radio btn in search form

This commit is contained in:
Aroy-Art 2024-10-20 19:02:44 +02:00
parent f74578d26a
commit 82d25810a8
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -57,7 +57,7 @@
{% for radio in form.mature %}
<div class="form-check form-check-inline">
<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>
{% endfor %}