\r
<li><a href="{% url admin_maintenance %}">{% trans "Maintenance mode" %}</a></li>\r
<li><a href="{% url admin_flagged_posts %}">{% trans "Flagged Posts" %}</a></li>\r
- {% for name,tool in tools.items %}\r
- <li><a href="{% url admin_tools name %}">{{ tool.label }}</a></li>\r
+ {% for name,tool in tools %}\r
+ <li><a href="{% url admin_tools name %}">{{ tool }}</a></li>\r
{% endfor %}\r
</ul>\r
</div>\r
<ul>
<li><a href="{% url admin_maintenance %}">{% trans "Maintenance mode" %}</a></li>
<li><a href="{% url admin_flagged_posts %}">{% trans "Flagged Posts" %}</a></li>
- {% for name,tool in tools.items %}
- <li><a href="{% url admin_tools name %}">{{ tool.label }}</a></li>
+ {% for name,tool in tools %}
+ <li><a href="{% url admin_tools name %}">{{ tool }}</a></li>
{% endfor %}
</ul>
</div>
'form', 'moderation', 'css', 'headandfoot', 'head', 'view', 'urls')]
, lambda s1, s2: s1.weight - s2.weight)
- context['tools'] = TOOLS
+ context['tools'] = [(name, fn.label) for name, fn in TOOLS.items()]
unsaved = request.session.get('previewing_settings', {})
context['unsaved'] = set([getattr(settings, s).set.name for s in unsaved.keys() if hasattr(settings, s)])