From a389eb5f5990b5a73c023ffae53ed7bac0435109 Mon Sep 17 00:00:00 2001 From: Luciano Almeida Date: Mon, 5 Jun 2017 12:58:49 -0300 Subject: [PATCH] Campo confirmado definido para ser True Signed-off-by: Luciano Almeida --- sapl/legacy/migration.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/sapl/legacy/migration.py b/sapl/legacy/migration.py index 50edb2f5c..b7ffceef6 100644 --- a/sapl/legacy/migration.py +++ b/sapl/legacy/migration.py @@ -21,10 +21,10 @@ from model_mommy.mommy import foreign_key_required, make from sapl.base.models import Argumento, Autor, Constraint, ProblemaMigracao from sapl.comissoes.models import Comissao, Composicao, Participacao from sapl.legacy.models import Protocolo as ProtocoloLegado -from sapl.materia.models import (DocumentoAcessorio, MateriaLegislativa, - StatusTramitacao, TipoDocumento, - TipoMateriaLegislativa, TipoProposicao, - Tramitacao) +from sapl.materia.models import (AcompanhamentoMateria, DocumentoAcessorio, + MateriaLegislativa, StatusTramitacao, + TipoDocumento, TipoMateriaLegislativa, + TipoProposicao, Tramitacao) from sapl.norma.models import (AssuntoNorma, NormaJuridica, TipoVinculoNormaJuridica, NormaRelacionada) from sapl.parlamentares.models import Parlamentar, TipoAfastamento @@ -581,6 +581,10 @@ def migrate(obj=appconfs, interativo=True): # MIGRATION_ADJUSTMENTS ##################################################### +def adjust_acompanhamentomateria(new, old): + new.confirmado = True + + def adjust_ordemdia_antes_salvar(new, old): new.votacao_aberta = False @@ -781,6 +785,7 @@ def adjust_comissao(new, old): AJUSTE_ANTES_SALVAR = { Autor: adjust_autor, + AcompanhamentoMateria: adjust_acompanhamentomateria, Comissao: adjust_comissao, NormaJuridica: adjust_normajuridica_antes_salvar, NormaRelacionada: adjust_normarelacionada,