diff --git a/funnel/forms/profile.py b/funnel/forms/profile.py index ff4c52a15..046c656cd 100644 --- a/funnel/forms/profile.py +++ b/funnel/forms/profile.py @@ -91,10 +91,9 @@ class ProfileTransitionForm(forms.Form): def set_queries(self) -> None: """Prepare form for use.""" - self.transition.choices = [ - (k, v.data['title']) - for k, v in self.edit_obj.profile_state.transitions().items() - ] + self.transition.choices = list( + self.edit_obj.profile_state.transitions().items() + ) @Account.forms('logo') diff --git a/funnel/forms/project.py b/funnel/forms/project.py index 3029ff05d..01879d6ac 100644 --- a/funnel/forms/project.py +++ b/funnel/forms/project.py @@ -282,9 +282,7 @@ class ProjectTransitionForm(forms.Form): def set_queries(self) -> None: """Prepare form for use.""" - self.transition.choices = [ - (k, v.data['title']) for k, v in self.edit_obj.state.transitions().items() - ] + self.transition.choices = list(self.edit_obj.state.transitions().items()) @Project.forms('cfp_transition')