From 2dddc1886b7be00ed4c648f01dad105ff725f689 Mon Sep 17 00:00:00 2001 From: Luciano Almeida Date: Mon, 23 May 2016 13:47:22 -0300 Subject: [PATCH] Corrige choice de StatusTramitacaoAdministrativa Signed-off-by: Luciano Almeida --- legacy/migration.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/legacy/migration.py b/legacy/migration.py index 4fcd75708..781cfc101 100644 --- a/legacy/migration.py +++ b/legacy/migration.py @@ -16,6 +16,7 @@ from comissoes.models import Composicao, Participacao from materia.models import StatusTramitacao, Tramitacao from norma.models import NormaJuridica from parlamentares.models import Parlamentar +from protocoloadm.models import StatusTramitacaoAdministrativo from sessao.models import OrdemDia, SessaoPlenaria # BASE ###################################################################### @@ -417,6 +418,10 @@ def adjust_statustramitacao(new, old): new.indicador = '' +def adjust_statustramitacaoadm(new, old): + adjust_statustramitacao(new, old) + + def adjust_tramitacao(new, old): if old.sgl_turno == 'Ú': new.turno = 'U' @@ -433,6 +438,7 @@ MIGRATION_ADJUSTMENTS = { Parlamentar: adjust_parlamentar, SessaoPlenaria: adjust_sessaoplenaria, StatusTramitacao: adjust_statustramitacao, + StatusTramitacaoAdministrativo: adjust_statustramitacaoadm, Tramitacao: adjust_tramitacao, }