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)