From d5a7b9e3bc38c2fef70e6b5a9c38793c1dd8fea7 Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Wed, 27 Jan 2016 13:45:09 -0200 Subject: [PATCH] Fix funcionalities of Pesquisa de Materia --- materia/views.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/materia/views.py b/materia/views.py index 13b90e6bb..61d18a199 100644 --- a/materia/views.py +++ b/materia/views.py @@ -2023,6 +2023,18 @@ class MateriaLegislativaPesquisaView(FormMixin, GenericView): if request.POST['assunto']: kwargs['ementa'] = request.POST['assunto'] + if request.POST['autor']: + kwargs['autoria'] = request.POST['autor'] + + # if request.POST['relator']: + # kwargs['relatoria'] = request.POST['relator'] + + if request.POST['localizacao']: + kwargs['local_origem_externa'] = request.POST['localizacao'] + + if request.POST['situacao']: + kwargs['tipo_id'] = request.POST['situacao'] + request.session['kwargs'] = kwargs return redirect('pesquisar_materia_list')