Carl Meyer
552f7c2009
Fixed #2 - Updated SplitField for 1.2-style prep_value method.
2011-02-18 16:45:39 -05:00
Carl Meyer
ac36cbf56c
Added InheritanceManager, contributed by Jeff Elmore.
2010-11-23 12:48:23 -05:00
Carl Meyer
396dd9274f
use manager_from for inheritance-casting
2010-10-05 09:01:26 -04:00
Carl Meyer
a2c67934ed
additional test, docs cleanup
2010-10-05 08:59:25 -04:00
Gregor Müllegger
216db6c098
Creating a custom QuerySet subclass for InheritanceCastModel to provide a way to batch cast a queryset of parents into child types. It's (2 + m) queries instead of (1 + n * 2) now (n: number of returned objects, m: number of different types in the queryset).
2010-10-01 20:43:22 +02:00
Carl Meyer
1d4613e807
make tests compatible with pre-1.2
2010-09-24 10:30:58 -04:00
Carl Meyer
5da38ee0c6
manager_from bugfix from George Sakkis; fixes #1
2010-08-16 17:58:16 -04:00
Carl Meyer
afafdd2bf9
make manager_from Django 1.1 compatible
2010-07-30 22:45:45 -04:00
Carl Meyer
cfd6578fe5
improve test coverage
2010-07-30 22:36:24 -04:00
Carl Meyer
aed583f763
added manager_from (thanks George Sakkis)
2010-07-30 22:09:46 -04:00
Carl Meyer
726f0de1dd
minor cleanup
2010-04-27 13:25:45 -04:00
Carl Meyer
be0f667204
fix typos in test names
2010-04-27 13:19:08 -04:00
Jannis Leidel
911b5223c8
Fixed bug which prevented the StatusModel and TimeframedModel to get the appropriate QueryManager instances added dynamically before instantiation.
2010-04-26 22:30:01 +02:00
Jannis Leidel
8e2893f1b7
Fixed typo.
2010-04-23 12:47:38 +02:00
Jannis Leidel
e4564f73db
Automated merge with http://bitbucket.org/carljm/django-model-utils/
2010-04-23 12:45:15 +02:00
Jannis Leidel
43138fbaaa
Extended South introspection rules to handle StatusField and MonitorField.
2010-04-23 12:44:59 +02: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
acbf46abb2
remove duplication between StatusModel tests
2010-04-15 23:59:05 -04:00
Carl Meyer
3e78add2d5
split out TimeFramedModel tests
2010-04-15 23:55:24 -04:00
Carl Meyer
d95f9efcf1
consistent PEP8 test method names
2010-04-15 23:52:31 -04:00
Carl Meyer
545bccf3ce
convert StatusModifiedField to generic MonitorField, use post_init signal instead of extra DB query
2010-04-15 23:47:28 -04:00
Carl Meyer
c43b1ba99d
remove previous_status from StatusField public API
...
I may be missing the use case, but this seems too ephemeral to be
useful (only exists on same instance after a save, can't rely on it
being there in general). If it's just an implementation detail for
StatusModifiedField, it doesn't need to be tested in public API for
StatusField.
2010-04-15 23:07:12 -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
2c8d042cf3
Removed the need for the status choices to be a subclass of model_utils.Choices.
2010-04-16 00:12:08 +02:00
Jannis Leidel
ff44c8de10
Moved the setting of the dynamic QueryManager to model classes. Removed metaclasses.
2010-04-16 00:01:38 +02:00
Jannis Leidel
cac35036d3
Fixed terrible typo.
2010-04-15 23:59:31 +02:00
Jannis Leidel
f04c200c09
Made the testrunner Django 1.2 compatible.
2010-04-15 23:56:56 +02: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
35d25f0a0f
Added TimeFramedModel and ConditionalModel.
2010-04-15 04:53:55 +02:00
Jannis Leidel
73b211309d
Marked a few labels for translation.
2010-04-15 04:49:51 +02:00
Jannis Leidel
7716c6397e
Minor cleanups.
2010-04-15 04:43:27 +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
9147becfc9
made SplitField compatible with South FakeORM
2010-01-31 10:54:36 -05:00
Carl Meyer
dfd804bba2
added has_more property to SplitField
2010-01-27 23:37:31 -05:00
Carl Meyer
85157347f1
added SplitField
2010-01-15 17:26:59 -05:00
Carl Meyer
a2dcac06de
added ChoiceEnum
2010-01-12 21:47:28 -05:00
Carl Meyer
0e6de5ae75
support South for custom fields
2010-01-06 23:20:31 -05:00
Carl Meyer
ee3881a1ff
updated setup.py: removed include_package_data, added test_suite
2009-10-26 17:49:44 -04:00
Carl Meyer
7703512c7f
0.3.0
...
--HG--
extra : convert_revision : carl%40dirtcircle.com-20090730211136-ywu7dfqfmsodkc1x
2009-07-30 17:11:36 -04:00
Carl Meyer
2d018ca847
added TimeStampedModel
...
--HG--
extra : convert_revision : carl%40dirtcircle.com-20090702201429-hph32omqgfgrga52
2009-07-02 16:14:29 -04: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