mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 03:13:12 +00:00
fix set
This commit is contained in:
parent
ea4ebd5c08
commit
fb70401d63
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