Commit graph

69 commits

Author SHA1 Message Date
Carl Meyer
41607c0b56 Resolve duplication between two pull requests for Choices.__len__. 2013-01-26 17:04:15 -08:00
Carl Meyer
4217dbd7fe Merge pull request #16 from ryankask/choices-len
__len__ method for Choices
2013-01-26 17:01:06 -08:00
James Oakley
9ea6605226 Add __len__() method to Choices 2012-10-30 11:01:57 -07:00
Ryan Kaskel
7cbfbdb453 len support for Choices. 2012-05-10 12:07:42 +01:00
Carl Meyer
69d0985db1 Started deprecation for manager_from, InheritanceCastModel, and Django 1.1 support. 2011-04-16 14:51:14 -05:00
Carl Meyer
d4951f6651 added triple option in Choices to split db representation from code constant 2010-04-22 13:02:25 -04:00
Carl Meyer
238571ed43 docs, AUTHORS, Changelog... 2010-04-16 00:37:12 -04:00
Carl Meyer
f64f16b053 Choices should be indexable as if it were a two-tuple 2010-04-16 00:11:31 -04:00
Carl Meyer
fecda79f5c deprecate ChoiceEnum and document Choices 2010-04-15 22:54:37 -04:00
Carl Meyer
02b2082e90 Fix Choices docstring, minor code changes:
- remove __getitem__, no need for it anymore
- remove implicit lowercasing (principle of least surprise: strings are usually case sensitive)
2010-04-15 22:32:33 -04:00
Carl Meyer
cb46293b0a merge backout 2010-04-15 22:30:03 -04:00
Carl Meyer
8efaf852c8 Backed out changeset c05246980ddf 2010-04-15 22:16:10 -04:00
Carl Meyer
49760e3559 merge backout 2010-04-15 22:15:54 -04:00
Carl Meyer
c236944568 Backed out changeset 4e9eb14b9047 2010-04-15 22:15:39 -04:00
Jannis Leidel
ee4f42f851 Added new `Choices class as a replacement for ChoiceEnum`. Also renamed Condition* et al to Status*. 2010-04-15 20:00:44 +02:00
Jannis Leidel
1fce7073e2 Added get_<choice>_display function to ChoiceNum to easily display human readable option label. 2010-04-15 04:36:21 +02:00
Jannis Leidel
50919b9ff4 Added ability to optionally use a label on ChoiceEnums choices. Useful for translation. 2010-04-10 00:50:35 +02:00
Carl Meyer
a2dcac06de added ChoiceEnum 2010-01-12 21:47:28 -05:00
Carl Meyer
3247ac5d4b initial import (with InheritanceCastModel)
--HG--
extra : convert_revision : carl%40dirtcircle.com-20090702180302-idhig8pzmbv8nv7l
2009-07-02 14:03:02 -04:00