From 9de07e2c92595b0faf964356d642b27c06396a90 Mon Sep 17 00:00:00 2001 From: eribeiro Date: Wed, 14 Apr 2021 13:11:05 -0300 Subject: [PATCH] =?UTF-8?q?Conserta=20bug=20em=20edi=C3=A7=C3=A3o=20de=20a?= =?UTF-8?q?utoria=20norma?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/norma/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/norma/views.py b/sapl/norma/views.py index 3f9e1247b..223728afd 100644 --- a/sapl/norma/views.py +++ b/sapl/norma/views.py @@ -492,7 +492,7 @@ class AutoriaNormaCrud(MasterDetailCrud): public = [RP_LIST, RP_DETAIL] list_field_names = ['autor', 'autor__tipo__descricao', 'primeiro_autor'] - class LocalBaseMixin(): + class LocalBaseMixin: form_class = AutoriaNormaForm @property @@ -513,7 +513,7 @@ class AutoriaNormaCrud(MasterDetailCrud): def get_initial(self): initial = super().get_initial() initial.update({ - 'data_relativa': self.object.norma.data_apresentacao, + 'data_relativa': self.object.norma.data, 'tipo_autor': self.object.autor.tipo.id, }) return initial