From 05a8c5046c502bc150be9ecdc3e32d131b5d58fc Mon Sep 17 00:00:00 2001 From: Felipe Vieira Date: Wed, 15 Feb 2012 13:36:03 +0000 Subject: [PATCH] adiciona botao para exportar para pdf --- sigi/apps/diagnosticos/models.py | 2 +- .../admin/diagnosticos/diagnostico/change_form.html | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sigi/apps/diagnosticos/models.py b/sigi/apps/diagnosticos/models.py index 5b592a9..b1644c3 100644 --- a/sigi/apps/diagnosticos/models.py +++ b/sigi/apps/diagnosticos/models.py @@ -109,7 +109,7 @@ class Diagnostico(BaseEntity): 'casa_legislativa': self.casa_legislativa, 'data_diagnostico': self.data_questionario, 'host': host, - 'url_diagnostico': self.get_absolute_url, + 'url_diagnostico': self.get_absolute_url(), 'status': "Alterado", }) diff --git a/sigi/templates/admin/diagnosticos/diagnostico/change_form.html b/sigi/templates/admin/diagnosticos/diagnostico/change_form.html index e806c30..a00b7f9 100644 --- a/sigi/templates/admin/diagnosticos/diagnostico/change_form.html +++ b/sigi/templates/admin/diagnosticos/diagnostico/change_form.html @@ -1,6 +1,16 @@ {% extends 'admin/change_form.html' %} +{% load i18n reporting_tags %} {% block extrastyle %} {{ block.super }} {% endblock %} + +{% block object-tools %} +{% if change %}{% if not is_popup %} + +{% endif %}{% endif %} +{% endblock %}