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 form_class = MateriaLegislativaForm
def form_valid(self, form): def form_valid(self, form):
self.object = form.save() self.object = form.instance
username = self.request.user.username
self.object.user = self.request.user self.object.user = self.request.user
self.object.ip = get_client_ip(self.request) self.object.ip = get_client_ip(self.request)

Loading…
Cancel
Save