mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 12:17:24 +03:00
Styling of nested lists/objects in detail view
This commit is contained in:
parent
a1421cd4a3
commit
9424e59b9e
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user