mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 11:33:59 +03:00
Styling of nested lists/objects in detail view
This commit is contained in:
parent
a1421cd4a3
commit
9424e59b9e
|
@ -3,7 +3,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for key, value in results.items %}
|
{% for key, value in results.items %}
|
||||||
{% if key in details %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user