From d7002e3f93291f4a2039c57dc5fcb96c5a0e04f7 Mon Sep 17 00:00:00 2001 From: "Camilo Carlos (Estagiario)" Date: Tue, 25 May 2010 20:29:48 +0000 Subject: [PATCH] =?UTF-8?q?Adicionando=20campo=20observa=C3=A7=C3=A3o=20em?= =?UTF-8?q?=20conv=C3=AAnio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/convenios/admin.py | 4 +++- sigi/apps/convenios/models.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sigi/apps/convenios/admin.py b/sigi/apps/convenios/admin.py index 0ab96c1..120ce98 100644 --- a/sigi/apps/convenios/admin.py +++ b/sigi/apps/convenios/admin.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from django.contrib import admin from sigi.apps.convenios.models import Projeto, Convenio, EquipamentoPrevisto, Anexo +from sigi.apps.casas.models import CasaLegislativa from sigi.apps.servicos.models import Servico from django.http import HttpResponseRedirect @@ -26,7 +27,7 @@ class ConvenioAdmin(admin.ModelAdmin): change_list_template = 'convenios/change_list.html' fieldsets = ( (None, - {'fields': ('casa_legislativa', 'num_processo_sf','num_convenio','projeto')} + {'fields': ('casa_legislativa', 'num_processo_sf','num_convenio','projeto','observacao')} ), ('Datas', {'fields': ('data_adesao', 'data_retorno_assinatura', @@ -67,4 +68,5 @@ class EquipamentoPrevistoAdmin(admin.ModelAdmin): #admin.site.register(Projeto) admin.site.register(Convenio, ConvenioAdmin) +#admin.site.register(CasaLegislativa) admin.site.register(EquipamentoPrevisto, EquipamentoPrevistoAdmin) diff --git a/sigi/apps/convenios/models.py b/sigi/apps/convenios/models.py index a7d254c..2512dff 100644 --- a/sigi/apps/convenios/models.py +++ b/sigi/apps/convenios/models.py @@ -62,7 +62,7 @@ class Convenio(models.Model): null=True, blank=True, ) - #content_type = models.ForeignKey(ContentType) + observacao = models.TextField() class Meta: get_latest_by = 'id'