8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-21 19:03:11 +00:00
This commit is contained in:
clement-pouilly clement-pouilly 2021-07-05 22:52:30 +02:00 committed by chapeau
parent ea4ebd5c08
commit fb70401d63
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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