From 8be7e3b83f722384b15359dd3a0d978904b716b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Cantu=C3=A1ria?= Date: Mon, 3 Jun 2019 16:58:43 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20Corrige=20adi=C3=A7=C3=A3o=20de=20ma?= =?UTF-8?q?t=C3=A9ria=20legislativa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Edward --- sapl/materia/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index 01a4e4009..f5d80ce11 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1617,8 +1617,7 @@ class MateriaLegislativaCrud(Crud): form_class = MateriaLegislativaForm def form_valid(self, form): - self.object = form.save() - username = self.request.user.username + self.object = form.instance self.object.user = self.request.user self.object.ip = get_client_ip(self.request)