mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-22 23:13:46 +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):
|
||||
instance = super().save(commit)
|
||||
instance.switch_set = self.cleaned_data["members"]
|
||||
instance.switch_set.set(self.cleaned_data["members"])
|
||||
return instance
|
||||
|
||||
|
||||
|
@ -424,7 +424,7 @@ class SwitchManagementCredForm(FormRevMixin, ModelForm):
|
|||
|
||||
def save(self, commit=True):
|
||||
instance = super().save(commit)
|
||||
instance.switch_set = self.cleaned_data["members"]
|
||||
instance.switch_set.set(self.cleaned_data["members"])
|
||||
return instance
|
||||
|
||||
|
||||
|
|
|
@ -225,7 +225,7 @@ class EditModelSwitchForm(FormRevMixin, ModelForm):
|
|||
|
||||
def save(self, commit=True):
|
||||
instance = super().save(commit)
|
||||
instance.switch_set = self.cleaned_data["members"]
|
||||
instance.switch_set.set(self.cleaned_data["members"])
|
||||
return instance
|
||||
|
||||
|
||||
|
@ -266,7 +266,7 @@ class EditSwitchBayForm(FormRevMixin, ModelForm):
|
|||
|
||||
def save(self, commit=True):
|
||||
instance = super().save(commit)
|
||||
instance.switch_set = self.cleaned_data["members"]
|
||||
instance.switch_set.set(self.cleaned_data["members"])
|
||||
return instance
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue