| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2019-10-25 | [3.0.x] Fixed #30902 -- Added __str__() for model choice enums. | Carlton Gibson | |
| Allows expected behavior when cast to str, also matching behaviour of created instances with those fetched from the DB. Thanks to Simon Charette, Nick Pope, and Shai Berger for reviews. Backport of dbcd7b064e7278614f29fc45468d461e263d4da7 from master | |||
| 2019-10-15 | [3.0.x] Refs #27910 -- Added __init__.py file for model_enums tests. | Mariusz Felisiak | |
| Backport of 1877ec18753947795b7821f8b9176bd7ea7c03a3 from master | |||
| 2019-09-04 | Fixed #27910 -- Added enumeration helpers for use in Field.choices. | Shai Berger | |
| These classes can serve as a base class for user enums, supporting translatable human-readable names, or names automatically inferred from the enum member name. Additional properties make it easy to access the list of names, values and display labels. Thanks to the following for ideas and reviews: Carlton Gibson, Fran Hrženjak, Ian Foote, Mariusz Felisiak, Shai Berger. Co-authored-by: Shai Berger <shai@platonix.com> Co-authored-by: Nick Pope <nick.pope@flightdataservices.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
