|
@ -22,7 +22,9 @@ class Index(Common, ListView): |
|
|
|
|
|
|
|
|
class NovoEditar(Common): |
|
|
class NovoEditar(Common): |
|
|
def form_valid(self, form): |
|
|
def form_valid(self, form): |
|
|
form_permissao = forms.PermissaoForm(self.request.POST) |
|
|
form_permissao = forms.PermissaoForm( |
|
|
|
|
|
instance=form.instance.per_custom_user.first(), data=self.request.POST |
|
|
|
|
|
) |
|
|
form_permissao.full_clean() |
|
|
form_permissao.full_clean() |
|
|
|
|
|
|
|
|
if not form_permissao.is_valid(): |
|
|
if not form_permissao.is_valid(): |
|
|