newsletters: add compatibility with django 1.11 widget rendering (#21083)
This commit is contained in:
parent
72b27ebab4
commit
00dac12b5b
|
@ -25,7 +25,9 @@
|
|||
<td>{{ field.label }}</td>
|
||||
{% for id, theme in form.themes %}<td data-id="{{ id }}">
|
||||
{% for w in field %}
|
||||
{% if w.choice_value == id %}{{ w }}{% endif %}
|
||||
{% with choice_value=w.data.value|default:w.choice_value %}
|
||||
{% if choice_value == id %}{{ w }}{% endif %}
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue