1
1
mirror of https://github.com/encode/django-rest-framework.git synced 2025-05-08 18:03:44 +03:00

Styling of nested lists/objects in detail view

This commit is contained in:
Tom Christie 2015-05-12 16:28:49 +01:00
parent a1421cd4a3
commit 9424e59b9e

View File

@ -3,7 +3,7 @@
<tbody>
{% for key, value in results.items %}
{% if key in details %}
<tr><th>{{ key|capfirst }}</th><td>{{ value|format_value }}</td></tr>
<tr><th>{{ key|capfirst }}</th><td {{ value|add_nested_class }}>{{ value|format_value }}</td></tr>
{% endif %}
{% endfor %}
</tbody>