Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible transitions #62

Open
Blackeagle52 opened this issue Oct 21, 2014 · 4 comments
Open

Possible transitions #62

Blackeagle52 opened this issue Oct 21, 2014 · 4 comments

Comments

@Blackeagle52
Copy link

Found a small bug. possible_transitions in models.py called the property possible_transitions in the model_methods.py as a function, which made it call the returned generator.

Hereby the diff, if necessary.

@@ -125,7 +125,7 @@ class StateModel(models.Model):

         :returns: list of transitions which can be made from the current state
         """
-        return self.get_state_info().possible_transitions()
+        return self.get_state_info().possible_transitions

     @classmethod
     def get_state_model_name(self):
alexhayes pushed a commit to alexhayes/django-states2 that referenced this issue Jan 14, 2015
@tiliv
Copy link

tiliv commented Jun 23, 2015

I guess I'm going to bump this or something, because this isn't fixed and it's a glaring issue with using this project as distributed.

@dirkmoors
Copy link
Contributor

@jgeskens is this something you can pick up?

@gvangool
Copy link
Contributor

@dirkmoors I've added it to #67 with a test case

/cc @jgeskens

@gvangool
Copy link
Contributor

gvangool commented Oct 2, 2015

@dirkmoors this is fixed in master ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants