aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2014-11-18 17:25:05 +0000
committerTom Christie2014-11-18 17:25:05 +0000
commitf573aaee4eabb9bf677c350219c8feb2333a6fa1 (patch)
treea3f448ae16caf9d1db6a77989d0327070576f2ed
parentc0d356edaa425868dbcdb29c5d2f8e88f177f604 (diff)
downloaddjango-rest-framework-f573aaee4eabb9bf677c350219c8feb2333a6fa1.tar.bz2
List serializer no explicitly renders as 'not supported for HTML input'
-rw-r--r--rest_framework/templates/rest_framework/horizontal/list_fieldset.html3
-rw-r--r--rest_framework/templates/rest_framework/inline/list_fieldset.html1
-rw-r--r--rest_framework/templates/rest_framework/vertical/list_fieldset.html1
3 files changed, 5 insertions, 0 deletions
diff --git a/rest_framework/templates/rest_framework/horizontal/list_fieldset.html b/rest_framework/templates/rest_framework/horizontal/list_fieldset.html
index a30514c6..a9ff04a6 100644
--- a/rest_framework/templates/rest_framework/horizontal/list_fieldset.html
+++ b/rest_framework/templates/rest_framework/horizontal/list_fieldset.html
@@ -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>
</div>
{% endif %}
+ <!--
<ul>
{% for child in field.value %}
<li>TODO</li>
{% endfor %}
</ul>
+ -->
+ <p>Lists are not currently supported in HTML input.</p>
</fieldset>
diff --git a/rest_framework/templates/rest_framework/inline/list_fieldset.html b/rest_framework/templates/rest_framework/inline/list_fieldset.html
new file mode 100644
index 00000000..2ae56d7c
--- /dev/null
+++ b/rest_framework/templates/rest_framework/inline/list_fieldset.html
@@ -0,0 +1 @@
+<span>Lists are not currently supported in HTML input.</span>
diff --git a/rest_framework/templates/rest_framework/vertical/list_fieldset.html b/rest_framework/templates/rest_framework/vertical/list_fieldset.html
index 74bbf448..1d86c7f2 100644
--- a/rest_framework/templates/rest_framework/vertical/list_fieldset.html
+++ b/rest_framework/templates/rest_framework/vertical/list_fieldset.html
@@ -4,4 +4,5 @@
{% for field_item in field.value.field_items.values() %}
{{ renderer.render_field(field_item, layout=layout) }}
{% endfor %} -->
+ <p>Lists are not currently supported in HTML input.</p>
</fieldset>