mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 07:23:46 +00:00
Merge branch 'fix_set' into 'dev'
Fix : reverse set declaration See merge request re2o/re2o!616
This commit is contained in:
commit
01e316914a
2 changed files with 4 additions and 4 deletions
|
@ -398,7 +398,7 @@ class RadiusKeyForm(FormRevMixin, ModelForm):
|
||||||
|
|
||||||
def save(self, commit=True):
|
def save(self, commit=True):
|
||||||
instance = super().save(commit)
|
instance = super().save(commit)
|
||||||
instance.switch_set = self.cleaned_data["members"]
|
instance.switch_set.set(self.cleaned_data["members"])
|
||||||
return instance
|
return instance
|
||||||
|
|
||||||
|
|
||||||
|
@ -424,7 +424,7 @@ class SwitchManagementCredForm(FormRevMixin, ModelForm):
|
||||||
|
|
||||||
def save(self, commit=True):
|
def save(self, commit=True):
|
||||||
instance = super().save(commit)
|
instance = super().save(commit)
|
||||||
instance.switch_set = self.cleaned_data["members"]
|
instance.switch_set.set(self.cleaned_data["members"])
|
||||||
return instance
|
return instance
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -225,7 +225,7 @@ class EditModelSwitchForm(FormRevMixin, ModelForm):
|
||||||
|
|
||||||
def save(self, commit=True):
|
def save(self, commit=True):
|
||||||
instance = super().save(commit)
|
instance = super().save(commit)
|
||||||
instance.switch_set = self.cleaned_data["members"]
|
instance.switch_set.set(self.cleaned_data["members"])
|
||||||
return instance
|
return instance
|
||||||
|
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ class EditSwitchBayForm(FormRevMixin, ModelForm):
|
||||||
|
|
||||||
def save(self, commit=True):
|
def save(self, commit=True):
|
||||||
instance = super().save(commit)
|
instance = super().save(commit)
|
||||||
instance.switch_set = self.cleaned_data["members"]
|
instance.switch_set.set(self.cleaned_data["members"])
|
||||||
return instance
|
return instance
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue