We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GET_STATE
1 parent cedaeb2 commit c7e63d0Copy full SHA for c7e63d0
django_fsm/__init__.py
@@ -679,5 +679,5 @@ def get_state(self, model, transition, result, args=[], kwargs={}):
679
result_state = self.func(model, *args, **kwargs)
680
if self.allowed_states is not None:
681
if result_state not in self.allowed_states:
682
- 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))
683
return result_state
0 commit comments