Skip to content

Commit c7e63d0

Browse files
amalshajikmmbvnr
authored andcommitted
Fix error message in GET_STATE
1 parent cedaeb2 commit c7e63d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_fsm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,5 +679,5 @@ def get_state(self, model, transition, result, args=[], kwargs={}):
679679
result_state = self.func(model, *args, **kwargs)
680680
if self.allowed_states is not None:
681681
if result_state not in self.allowed_states:
682-
raise InvalidResultState("{} is not in list of allowed states\n{}".format(result, self.allowed_states))
682+
raise InvalidResultState("{} is not in list of allowed states\n{}".format(result_state, self.allowed_states))
683683
return result_state

0 commit comments

Comments
 (0)