From d2c613f0af677b887bc52833a02cbc5915a77a5c Mon Sep 17 00:00:00 2001 From: Gilson Filho Date: Tue, 29 Nov 2011 14:26:36 +0000 Subject: [PATCH] =?UTF-8?q?Corrigindo=20a=20constru=C3=A7=C3=A3o=20da=20UR?= =?UTF-8?q?L=20da=20lista=20de=20categorias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/diagnosticos/views.py | 3 ++- sigi/templates/diagnosticos/diagnosticos_categorias_form.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sigi/apps/diagnosticos/views.py b/sigi/apps/diagnosticos/views.py index 96b0771..4233a6b 100644 --- a/sigi/apps/diagnosticos/views.py +++ b/sigi/apps/diagnosticos/views.py @@ -50,6 +50,7 @@ def categoria_detalhes(request, id_diagnostico, id_categoria): else: form = DiagnosticoMobileForm(instance=diagnostico, category=id_categoria) - context = RequestContext(request, {'form': form, 'categoria': categoria}) + context = RequestContext(request, {'form': form, 'categoria': categoria, + 'diagnostico': diagnostico}) return render_to_response('diagnosticos/diagnosticos_categorias_form.html', context) diff --git a/sigi/templates/diagnosticos/diagnosticos_categorias_form.html b/sigi/templates/diagnosticos/diagnosticos_categorias_form.html index 6e08f51..dffbdbf 100644 --- a/sigi/templates/diagnosticos/diagnosticos_categorias_form.html +++ b/sigi/templates/diagnosticos/diagnosticos_categorias_form.html @@ -7,7 +7,7 @@ {% block cabecalho %}

{{ categoria.nome }}

- Voltar {% endblock cabecalho %}