summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--horizon/workflows/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/workflows/base.py b/horizon/workflows/base.py
index 66f63006f..4ceafaf9a 100644
--- a/horizon/workflows/base.py
+++ b/horizon/workflows/base.py
@@ -169,7 +169,7 @@ class Action(forms.Form, metaclass=ActionMetaclass):
return "<%s: %s>" % (self.__class__.__name__, self.slug)
def _populate_choices(self, request, context):
- for field_name, bound_field in self.fields.items():
+ for field_name, bound_field in list(self.fields.items()):
meth = getattr(self, "populate_%s_choices" % field_name, None)
if meth is not None and callable(meth):
bound_field.choices = meth(request, context)