Skip to content

Commit 1ffafc0

Browse files
author
Piotr Śniegowski
committed
Add crude implementation of dict rendering in admin pages.
1 parent 2faa7bc commit 1ffafc0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% load rest_framework %}
2+
<table class="table table-striped">
3+
<tbody>
4+
{% for key, item_value in value.items %}
5+
<tr><th>{{ key|capfirst }}</th><td {{ value|add_nested_class }}>{{ item_value|format_value }}</td></tr>
6+
{% endfor %}
7+
</tbody>
8+
</table>

0 commit comments

Comments
 (0)