From cc798ec8dc3feb2380680d56b9d1b3d2d126d09d Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Tue, 5 Apr 2016 11:49:02 -0300 Subject: [PATCH] Substitui o POST padrao do crispy forms por GET --- materia/forms.py | 1 + templates/materia/materialegislativa_filter.html | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/materia/forms.py b/materia/forms.py index 6639b4e3d..a1da19ed6 100644 --- a/materia/forms.py +++ b/materia/forms.py @@ -733,6 +733,7 @@ class MateriaLegislativaPesquisaFields(FilterSet): ('ementa', 6)]) self.form.helper = FormHelper() + self.form.helper.form_method = 'GET' self.form.helper.layout = Layout( Fieldset(_('Pesquisa Básica'), row1, row2, row3, row4, diff --git a/templates/materia/materialegislativa_filter.html b/templates/materia/materialegislativa_filter.html index 8c4db9916..787009651 100644 --- a/templates/materia/materialegislativa_filter.html +++ b/templates/materia/materialegislativa_filter.html @@ -8,7 +8,10 @@ {% block detail_content %}

Pesquisar Matéria



- {% crispy filter.form %} + + + {% crispy filter.form %} +