8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

Merge branch 'fix_set' into 'dev'

Fix : reverse set declaration

See merge request re2o/re2o!616
This commit is contained in:
chapeau 2021-07-06 12:15:33 +00:00
commit 01e316914a
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