From 808b742be161768e7580d6fef882b6e50f1b91d8 Mon Sep 17 00:00:00 2001 From: Guilherme Gondim Date: Fri, 18 Dec 2009 11:27:55 +0000 Subject: [PATCH] =?UTF-8?q?Preparando=20o=20terreno=20para=20os=20relat?= =?UTF-8?q?=C3=B3rios.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/convenios/admin.py | 1 + sigi/apps/convenios/reports.py | 11 +++++++++++ .../templates/convenios/change_list.html | 15 +++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 sigi/apps/convenios/reports.py create mode 100644 sigi/apps/convenios/templates/convenios/change_list.html diff --git a/sigi/apps/convenios/admin.py b/sigi/apps/convenios/admin.py index e421f33..a4fe994 100644 --- a/sigi/apps/convenios/admin.py +++ b/sigi/apps/convenios/admin.py @@ -22,6 +22,7 @@ class AnexoAdmin(admin.ModelAdmin): 'convenio__casa_legislativa__nome') class ConvenioAdmin(admin.ModelAdmin): + change_list_template = 'convenios/change_list.html' fieldsets = ( (None, {'fields': ('casa_legislativa', 'num_processo_sf')} diff --git a/sigi/apps/convenios/reports.py b/sigi/apps/convenios/reports.py new file mode 100644 index 0000000..86eca5d --- /dev/null +++ b/sigi/apps/convenios/reports.py @@ -0,0 +1,11 @@ +class CasasAderidasReport(object): + pass + +class CasasNaoAderidasReport(object): + pass + +class CasasComEquipamentosReport(object): + pass + +class SemEquipamentosReport(object): + pass diff --git a/sigi/apps/convenios/templates/convenios/change_list.html b/sigi/apps/convenios/templates/convenios/change_list.html new file mode 100644 index 0000000..e64757a --- /dev/null +++ b/sigi/apps/convenios/templates/convenios/change_list.html @@ -0,0 +1,15 @@ +{% extends "admin/change_list.html" %} +{% load i18n reporting_tags %} + +{% block object-tools %} + {% if has_add_permission %} + + {% endif %} +{% endblock %}