From 8b0137a103c73b210705e5bfbc0e2e9d081f0aba Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 18 Sep 2017 09:49:57 -0300 Subject: [PATCH] Retira limite de data p migrar cod_protocolo --- sapl/legacy/migration.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sapl/legacy/migration.py b/sapl/legacy/migration.py index bc7483ea9..1741e9371 100644 --- a/sapl/legacy/migration.py +++ b/sapl/legacy/migration.py @@ -510,10 +510,8 @@ def adjust_normarelacionada(new, old): def adjust_protocolo_antes_salvar(new, old): - data_ajuste = date(2014, 11, 13) - - if old.num_protocolo is None and data_ajuste >= old.dat_protocolo: - new.numero = old.pk + if old.num_protocolo is None: + new.numero = old.cod_protocolo def adjust_protocolo_depois_salvar(new, old):