From f352c22458f929a8b0930a7027f5a4fac11a3d2d Mon Sep 17 00:00:00 2001 From: Vidya Ramakrishnan Date: Mon, 6 Nov 2023 19:39:15 +0530 Subject: [PATCH 1/2] Fix the profile transition form --- funnel/forms/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funnel/forms/profile.py b/funnel/forms/profile.py index 8236caf2a..f959281e0 100644 --- a/funnel/forms/profile.py +++ b/funnel/forms/profile.py @@ -91,7 +91,7 @@ class ProfileTransitionForm(forms.Form): def set_queries(self) -> None: """Prepare form for use.""" - self.transition.choices = list(self.edit_obj.state.transitions().items()) + self.transition.choices = list(self.edit_obj.profile_state.transitions().items()) @Account.forms('logo') From 0dd82205dfa8708aa71f3d413f7a88853c170122 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 14:13:08 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- funnel/forms/profile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/funnel/forms/profile.py b/funnel/forms/profile.py index f959281e0..046c656cd 100644 --- a/funnel/forms/profile.py +++ b/funnel/forms/profile.py @@ -91,7 +91,9 @@ class ProfileTransitionForm(forms.Form): def set_queries(self) -> None: """Prepare form for use.""" - self.transition.choices = list(self.edit_obj.profile_state.transitions().items()) + self.transition.choices = list( + self.edit_obj.profile_state.transitions().items() + ) @Account.forms('logo')