Browse Source

Define False para votacao_aberta de todas as ordens do dia

Signed-off-by: Luciano Almeida <lucianoalmeida@interlegis.leg.br>
pull/1162/head
Luciano Almeida 8 years ago
parent
commit
c4ba3d9356
  1. 4
      sapl/legacy/migration.py

4
sapl/legacy/migration.py

@ -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

Loading…
Cancel
Save