Fixed an instance of changing a dictionary inside a loop over its keys.
- Legacy-Id: 16387
This commit is contained in:
parent
a1e7dc9acc
commit
89e265d798
|
@ -116,7 +116,8 @@ class GroupForm(forms.Form):
|
|||
for r in role_fields_to_remove:
|
||||
del self.fields[r + "_roles"]
|
||||
if field:
|
||||
for f in self.fields:
|
||||
keys = list(self.fields.keys())
|
||||
for f in keys:
|
||||
if f != field:
|
||||
del self.fields[f]
|
||||
|
||||
|
|
Loading…
Reference in a new issue