Browse Source

Merge pull request #1163 from interlegis/1132-confirmado-acompmateria

fix #1132 - Campo confirmado definido para ser True
pull/1167/head
Luciano Henrique Nunes de Almeida 8 years ago
committed by GitHub
parent
commit
a5147c0b0f
  1. 13
      sapl/legacy/migration.py

13
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.base.models import Argumento, Autor, Constraint, ProblemaMigracao
from sapl.comissoes.models import Comissao, Composicao, Participacao from sapl.comissoes.models import Comissao, Composicao, Participacao
from sapl.legacy.models import Protocolo as ProtocoloLegado from sapl.legacy.models import Protocolo as ProtocoloLegado
from sapl.materia.models import (DocumentoAcessorio, MateriaLegislativa, from sapl.materia.models import (AcompanhamentoMateria, DocumentoAcessorio,
StatusTramitacao, TipoDocumento, MateriaLegislativa, StatusTramitacao,
TipoMateriaLegislativa, TipoProposicao, TipoDocumento, TipoMateriaLegislativa,
Tramitacao) TipoProposicao, Tramitacao)
from sapl.norma.models import (AssuntoNorma, NormaJuridica, from sapl.norma.models import (AssuntoNorma, NormaJuridica,
TipoVinculoNormaJuridica, NormaRelacionada) TipoVinculoNormaJuridica, NormaRelacionada)
from sapl.parlamentares.models import Parlamentar, TipoAfastamento from sapl.parlamentares.models import Parlamentar, TipoAfastamento
@ -581,6 +581,10 @@ def migrate(obj=appconfs, interativo=True):
# MIGRATION_ADJUSTMENTS ##################################################### # MIGRATION_ADJUSTMENTS #####################################################
def adjust_acompanhamentomateria(new, old):
new.confirmado = True
def adjust_ordemdia_antes_salvar(new, old): def adjust_ordemdia_antes_salvar(new, old):
new.votacao_aberta = False new.votacao_aberta = False
@ -781,6 +785,7 @@ def adjust_comissao(new, old):
AJUSTE_ANTES_SALVAR = { AJUSTE_ANTES_SALVAR = {
Autor: adjust_autor, Autor: adjust_autor,
AcompanhamentoMateria: adjust_acompanhamentomateria,
Comissao: adjust_comissao, Comissao: adjust_comissao,
NormaJuridica: adjust_normajuridica_antes_salvar, NormaJuridica: adjust_normajuridica_antes_salvar,
NormaRelacionada: adjust_normarelacionada, NormaRelacionada: adjust_normarelacionada,

Loading…
Cancel
Save