From d09c717c8f5ff03ac8e6ca9fa9613a60ada5b25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 26 Sep 2016 15:57:52 +0200 Subject: [PATCH] templates: order communes in - {% for slug, categories in form_categories.iteritems %} - {% if categories.title != request.session.mellon_session.city.0 and slug != 'agglo' %} - + {% for categories in form_categories.values|dictsort:"title" %} + {% if categories.title != request.session.mellon_session.city.0 and categories.slug != 'agglo' %} + {% endif %} {% endfor %}