File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ <h2>{% trans "Additional Data" %}</h2>
183
183
</ tr >
184
184
</ thead >
185
185
< tbody >
186
- {% for k_, v_ in v.iteritems %}
186
+ {% for k_, v_ in v.iteritems|as_sorted %}
187
187
< tr >
188
188
< td > {{ k_ }}</ td >
189
189
< td class ="code "> < pre > {{ v_|pprint }}</ pre > </ td >
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ <h2>More Information</h2>
58
58
</ tr >
59
59
</ thead >
60
60
< tbody >
61
- {% for k_, v_ in v.iteritems %}
61
+ {% for k_, v_ in v.iteritems|as_sorted %}
62
62
< tr >
63
63
< td > {{ k_ }}</ td >
64
64
< td class ="code "> < pre > {{ v_|pprint }}</ pre > </ td >
Original file line number Diff line number Diff line change 9
9
10
10
register = template .Library ()
11
11
12
+ @register .filter
13
+ def as_sorted (value ):
14
+ return sorted (value )
15
+
12
16
@register .filter
13
17
def is_dict (value ):
14
18
return isinstance (value , dict )
You can’t perform that action at this time.
0 commit comments