From c4ba3d93563907097a78c65826a19bc6f2d8b489 Mon Sep 17 00:00:00 2001 From: Luciano Almeida Date: Fri, 2 Jun 2017 18:46:07 -0300 Subject: [PATCH] Define False para votacao_aberta de todas as ordens do dia Signed-off-by: Luciano Almeida --- sapl/legacy/migration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/legacy/migration.py b/sapl/legacy/migration.py index 7794ca273..50edb2f5c 100644 --- a/sapl/legacy/migration.py +++ b/sapl/legacy/migration.py @@ -582,10 +582,10 @@ def migrate(obj=appconfs, interativo=True): # MIGRATION_ADJUSTMENTS ##################################################### def adjust_ordemdia_antes_salvar(new, old): - # Prestar atenção + new.votacao_aberta = False + if not old.tip_votacao: new.tipo_votacao = 1 - if old.num_ordem is None: new.numero_ordem = 999999999