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 box (#13098) --- templates/combo/wcs/form_categories.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/combo/wcs/form_categories.html b/templates/combo/wcs/form_categories.html index 8b04506..87e483a 100644 --- a/templates/combo/wcs/form_categories.html +++ b/templates/combo/wcs/form_categories.html @@ -59,9 +59,9 @@ Métropole mais aussi celles des différentes communes de la métropole.
Choisissez une commune... - {% for slug, categories in form_categories.iteritems %} - {% if categories.title != request.session.mellon_session.city.0 and slug != 'agglo' %} - {{ categories.title }} + {% for categories in form_categories.values|dictsort:"title" %} + {% if categories.title != request.session.mellon_session.city.0 and categories.slug != 'agglo' %} + {{ categories.title }} {% endif %} {% endfor %}