In the usage example why are there two enums (my_state, my_status)? #67
Unanswered
amitjindal
asked this question in
Q&A
Replies: 1 comment
-
Thank you for pointing this out! It looks like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to understand this. Why do we need two states in Invoice model?
The name: MY_STATE_CHOICES seems to indicate that the my_state is the right enum field for model and you are in fact binding to the same.
But the default specified is wrong in that. Default='open' is not a valid choice in MY_STATE_CHOICES.
Whereas the my_status specifies correct default but it does not seems to be used.
So my question is, if I want to use the package, do I need to specify two states in every model? How will the current sample work since there is no transition that provides source as 'open'.
Please clarify.
Beta Was this translation helpful? Give feedback.
All reactions