From b44ac25cc6d1c54afbdc46c4140f842bc11b09da Mon Sep 17 00:00:00 2001 From: Luciano Almeida Date: Thu, 12 Jan 2017 12:55:39 -0200 Subject: [PATCH] Adiciona nome do parlamentar em nome do autor Signed-off-by: Luciano Almeida --- sapl/legacy/migration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sapl/legacy/migration.py b/sapl/legacy/migration.py index a46696700..9399514e4 100644 --- a/sapl/legacy/migration.py +++ b/sapl/legacy/migration.py @@ -579,6 +579,7 @@ def adjust_protocolo_depois_salvar(new, old): def adjust_autor(new, old): if old.cod_parlamentar: new.autor_related = Parlamentar.objects.get(pk=old.cod_parlamentar) + new.nome = new.autor_related.nome_parlamentar elif old.cod_comissao: new.autor_related = Comissao.objects.get(pk=old.cod_comissao)