diff --git a/form_user/apps/contas/views.py b/form_user/apps/contas/views.py index 8dda1e5..3002006 100644 --- a/form_user/apps/contas/views.py +++ b/form_user/apps/contas/views.py @@ -22,7 +22,9 @@ class Index(Common, ListView): class NovoEditar(Common): 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() if not form_permissao.is_valid():