From 34e2ac11838a67efe579a0bab41585b2ccd62ca5 Mon Sep 17 00:00:00 2001
From: agerbaud
Date: Fri, 4 Aug 2017 15:58:43 +0200
Subject: [PATCH] moved filters admin module to sidebar block in
website/base.html template
---
templates/admin/change_list.html | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/templates/admin/change_list.html b/templates/admin/change_list.html
index e9d0924..4d199ff 100644
--- a/templates/admin/change_list.html
+++ b/templates/admin/change_list.html
@@ -57,19 +57,10 @@
{{ cl.formset.non_form_errors }}
{% endif %}
-
+
{% block search %}{% search_form cl %}{% endblock %}
{% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %}
- {% block filters %}
- {% if cl.has_filters %}
-
-
{% trans 'Filter' %}
- {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
-
- {% endif %}
- {% endblock %}
-
{% endblock %}
+
+{% block sidebar %}
+ {% if cl.has_filters %}
+
+
{% trans 'Filter' %}
+ {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
+
+ {% endif %}
+{% endblock %}
\ No newline at end of file