1 {% load maintain_extras %}
3 {% with wrapper as child_wrapper %}
4 {% for field, wrapper in wrapper.parent.items %}
6 {% with instance|get:field as instance %}
7 {% for field in wrapper.fields %}
9 {% if child_wrapper|link %}
10 <a href=
"{{ROOT}}/o/{{child_wrapper.name}}/{{instance.id}}" class=
"model">{{instance|get:field}}
</a>
12 {{instance|get:field}}
16 {% for field, wrapper in wrapper.one_to_one.items %}
17 {% with instance|get:field as instance %}
20 <a href=
"{{ROOT}}/o/{{wrapper.name}}/{{instance.id}}" class=
"model">
21 {% for field in wrapper.fields %}
22 {{ instance|get:field }}
26 {% for field in wrapper.fields %}
27 {{ instance|get:field }}
37 {% for field, wrapper in wrapper.children.items %}
38 {% with instance|get:field as instance %}
40 {% for field, wrapper in wrapper.many_to_one.items %}
41 {% with instance|get:field as instance %}
44 <a href=
"{{ROOT}}/o/{{wrapper.name}}/{{instance.id}}" class=
"model">
45 {% for field in wrapper.fields %}
46 <b>{{field}}:
</b> {{ instance|get:field }}
50 {% for field in wrapper.fields %}
51 <b>{{field}}:
</b> {{ instance|get:field }}
57 {% for field in wrapper.fields %}
60 <a href=
"{{ROOT}}/o/{{wrapper.name}}/{{instance.id}}" class=
"model">{{instance|get:field}}
</a>
62 {{instance|get:field}}
70 {% for field in wrapper.fields %}
73 <a href=
"{{ROOT}}/o/{{wrapper.name}}/{{instance.id}}" class=
"model">{{instance|get:field}}
</a>
75 {{instance|get:field}}