Browse Source

Substitui o POST padrao do crispy forms por GET

pull/282/head
Eduardo Calil 9 years ago
parent
commit
20348dbaba
  1. 1
      materia/forms.py
  2. 3
      templates/materia/materialegislativa_filter.html

1
materia/forms.py

@ -744,6 +744,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,

3
templates/materia/materialegislativa_filter.html

@ -8,7 +8,10 @@
{% block detail_content %}
<h1><b>Pesquisar Matéria</b></h1>
<br></br>
{% crispy filter.form %}
<p></p>
<table class="table table-striped table-bordered">
<thead class="thead-default">

Loading…
Cancel
Save