Browse Source

HOT-FIX: Corrige adição de matéria legislativa

Co-Authored-By: Edward <edwardoliveira@users.noreply.github.com>
pull/2830/head
Vinícius Cantuária 6 years ago
parent
commit
cae0876b8d
  1. 3
      sapl/materia/views.py

3
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)

Loading…
Cancel
Save