Browse Source

Fix POST request in diagnóstico view

Signed-off-by: Luciano Almeida <lucianoalmeida@interlegis.leg.br>
pull/6/head
Luciano Almeida 9 years ago
committed by Luciano Almeida
parent
commit
8bbe2e2dc5
  1. 2
      sigi/apps/diagnosticos/views.py

2
sigi/apps/diagnosticos/views.py

@ -272,7 +272,7 @@ def diagnostico_pdf(request, id_diagnostico):
def graficos(request): def graficos(request):
categorias = Categoria.objects.all() categorias = Categoria.objects.all()
sel_categoria = int(request.GET.get("categoria", "3")) sel_categoria = int(request.POST.get("categoria", "3"))
perguntas = Pergunta.objects.filter(categoria=sel_categoria).all() perguntas = Pergunta.objects.filter(categoria=sel_categoria).all()
context = RequestContext(request, { context = RequestContext(request, {

Loading…
Cancel
Save