1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Refs #32338 -- Added Boundfield.legend_tag().

This commit is contained in:
David Smith
2021-11-06 06:50:29 +00:00
committed by Mariusz Felisiak
parent 81739a45b5
commit eba9a9b7f7
11 changed files with 188 additions and 24 deletions

View File

@@ -0,0 +1,7 @@
{% for field in form %}
{% if field.widget_type == 'radioselect' %}
{{ field.legend_tag }}
{% else %}
{{ field.label_tag }}
{% endif %}
{% endfor %}