mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
List serializer no explicitly renders as 'not supported for HTML input'
This commit is contained in:
parent
c0d356edaa
commit
f573aaee4e
|
@ -5,9 +5,12 @@
|
||||||
<legend class="control-label col-sm-2 {% if style.hide_label %}sr-only{% endif %}" style="border-bottom: 0">{{ field.label }}</legend>
|
<legend class="control-label col-sm-2 {% if style.hide_label %}sr-only{% endif %}" style="border-bottom: 0">{{ field.label }}</legend>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<!--
|
||||||
<ul>
|
<ul>
|
||||||
{% for child in field.value %}
|
{% for child in field.value %}
|
||||||
<li>TODO</li>
|
<li>TODO</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
-->
|
||||||
|
<p>Lists are not currently supported in HTML input.</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
<span>Lists are not currently supported in HTML input.</span>
|
|
@ -4,4 +4,5 @@
|
||||||
{% for field_item in field.value.field_items.values() %}
|
{% for field_item in field.value.field_items.values() %}
|
||||||
{{ renderer.render_field(field_item, layout=layout) }}
|
{{ renderer.render_field(field_item, layout=layout) }}
|
||||||
{% endfor %} -->
|
{% endfor %} -->
|
||||||
|
<p>Lists are not currently supported in HTML input.</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user