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. 5
      templates/materia/materialegislativa_filter.html

1
materia/forms.py

@ -744,6 +744,7 @@ class MateriaLegislativaPesquisaFields(FilterSet):
('ementa', 6)]) ('ementa', 6)])
self.form.helper = FormHelper() self.form.helper = FormHelper()
self.form.helper.form_method = 'GET'
self.form.helper.layout = Layout( self.form.helper.layout = Layout(
Fieldset(_('Pesquisa Básica'), Fieldset(_('Pesquisa Básica'),
row1, row2, row3, row4, row1, row2, row3, row4,

5
templates/materia/materialegislativa_filter.html

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

Loading…
Cancel
Save