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'