Browse Source

Add check for SessaoPlenaria migration

pull/6/head
Marcio Mazza 10 years ago
parent
commit
f0b9f099f4
  1. 6
      legacy/migration.py

6
legacy/migration.py

@ -11,6 +11,7 @@ from model_mommy import mommy
from comissoes.models import Composicao, Participacao
from parlamentares.models import Parlamentar
from sessao.models import SessaoPlenaria
from sapl.utils import appconfs
# BASE ######################################################################
@ -260,9 +261,14 @@ def adjust_parlamentar(new_parlamentar, old):
new_parlamentar.unidade_deliberativa = False
def adjust_sessaoplenaria(new, old):
assert not old.tip_expediente
MIGRATION_ADJUSTMENTS = {
Participacao: adjust_participacao,
Parlamentar: adjust_parlamentar,
SessaoPlenaria: adjust_sessaoplenaria,
}
# CHECKS ####################################################################

Loading…
Cancel
Save