mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 15:33:45 +00:00
Remove state_sync : est appellé en post-save de user
This commit is contained in:
parent
2a4bd6bd79
commit
bef496b3e2
1 changed files with 0 additions and 8 deletions
|
@ -682,14 +682,6 @@ class StateForm(FormRevMixin, ModelForm):
|
||||||
prefix = kwargs.pop("prefix", self.Meta.model.__name__)
|
prefix = kwargs.pop("prefix", self.Meta.model.__name__)
|
||||||
super(StateForm, self).__init__(*args, prefix=prefix, **kwargs)
|
super(StateForm, self).__init__(*args, prefix=prefix, **kwargs)
|
||||||
|
|
||||||
def save(self, commit=True):
|
|
||||||
user = super(StateForm, self).save(commit=False)
|
|
||||||
if self.cleaned_data["state"]:
|
|
||||||
user.state = self.cleaned_data.get("state")
|
|
||||||
user.state_sync()
|
|
||||||
|
|
||||||
user.save()
|
|
||||||
|
|
||||||
|
|
||||||
class GroupForm(FieldPermissionFormMixin, FormRevMixin, ModelForm):
|
class GroupForm(FieldPermissionFormMixin, FormRevMixin, ModelForm):
|
||||||
""" Gestion des groupes d'un user"""
|
""" Gestion des groupes d'un user"""
|
||||||
|
|
Loading…
Reference in a new issue