|
@ -582,10 +582,10 @@ def migrate(obj=appconfs, interativo=True): |
|
|
# MIGRATION_ADJUSTMENTS ##################################################### |
|
|
# MIGRATION_ADJUSTMENTS ##################################################### |
|
|
|
|
|
|
|
|
def adjust_ordemdia_antes_salvar(new, old): |
|
|
def adjust_ordemdia_antes_salvar(new, old): |
|
|
# Prestar atenção |
|
|
new.votacao_aberta = False |
|
|
|
|
|
|
|
|
if not old.tip_votacao: |
|
|
if not old.tip_votacao: |
|
|
new.tipo_votacao = 1 |
|
|
new.tipo_votacao = 1 |
|
|
|
|
|
|
|
|
if old.num_ordem is None: |
|
|
if old.num_ordem is None: |
|
|
new.numero_ordem = 999999999 |
|
|
new.numero_ordem = 999999999 |
|
|
|
|
|
|
|
|