Skip to content

Commit

Permalink
Fix the profile transition form (#1924)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
vidya-ram and pre-commit-ci[bot] authored Nov 6, 2023
1 parent 64cd342 commit becda18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion funnel/forms/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit becda18

Please sign in to comment.