Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Fix error message in GET_STATE
Browse files Browse the repository at this point in the history
  • Loading branch information
amalshaji authored and kmmbvnr committed Dec 21, 2023
1 parent cedaeb2 commit c7e63d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_fsm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,5 +679,5 @@ def get_state(self, model, transition, result, args=[], kwargs={}):
result_state = self.func(model, *args, **kwargs)
if self.allowed_states is not None:
if result_state not in self.allowed_states:
raise InvalidResultState("{} is not in list of allowed states\n{}".format(result, self.allowed_states))
raise InvalidResultState("{} is not in list of allowed states\n{}".format(result_state, self.allowed_states))
return result_state

0 comments on commit c7e63d0

Please sign in to comment.