Enumerated field?

7 views
Skip to first unread message

Allan Lewis

unread,
Jul 1, 2011, 6:26:43 PM7/1/11
to hobo...@googlegroups.com
How do I declare an enumerated field in a model? For example, I want an "issue" to have a "status", and the latter can only be "Open" or "Closed".

kevinpfromnm

unread,
Jul 1, 2011, 6:49:38 PM7/1/11
to hobo...@googlegroups.com
Well, you can use enum_string or if you think you need or will need additional logic about the changing of status, you might consider checking out lifecycles.
Reply all
Reply to author
Forward
0 new messages