From 30928396668b0ac1bf5492e5d1e0836a73311a6e Mon Sep 17 00:00:00 2001 From: Luciano Almeida Date: Fri, 19 May 2017 11:06:03 -0300 Subject: [PATCH] Adicionando nome da comissao em 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 baf105e74..c8e736694 100644 --- a/sapl/legacy/migration.py +++ b/sapl/legacy/migration.py @@ -723,6 +723,7 @@ def adjust_autor(new, old): new.nome = new.autor_related.nome_parlamentar elif old.cod_comissao: new.autor_related = Comissao.objects.get(pk=old.cod_comissao) + new.nome = new.autor_related.nome if old.col_username: if not get_user_model().objects.filter(