From becda18c0bf8b3d7c6fd71bf56facbd041cdfbb8 Mon Sep 17 00:00:00 2001 From: Vidya Ramakrishnan Date: Mon, 6 Nov 2023 20:39:19 +0530 Subject: [PATCH] Fix the profile transition form (#1924) * Fix the profile transition form * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- 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 8236caf2a..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.state.transitions().items()) + self.transition.choices = list( + self.edit_obj.profile_state.transitions().items() + ) @Account.forms('logo')