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 %}