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