Browse Source

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

Co-Authored-By: Edward <edwardoliveira@users.noreply.github.com>
pull/2838/head
Vinícius Cantuária 6 years ago
committed by Cesar Carvalho
parent
commit
8be7e3b83f
  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