django-model-utils/model_utils/tests
Matthew Schinckel 02e19e45b4 Okay, now we are getting somewhere.
By itself, .instance_of(*models) will actually call select_subclasses(*models),
which results in just those objects being cast to subclasses.

However, if you want the casting to grandchildren (which is supported only in
django 1.6+), then you may use an extra call to .select_subclasses() (without
arguments, to select all subclasses).

It doesn't deal with @kezabelle's discussion of mixed-use of select_subclasses/
instance_of, I still need to look at that.

But it does pass all current tests...
2014-05-22 21:31:31 +09:30
..
__init__.py initial import (with InheritanceCastModel) 2009-07-02 14:03:02 -04:00
fields.py Removed reinvented wheel 2013-08-12 13:22:34 +04:00
models.py Fix InheritanceManager when the model has a self reference. 2014-02-19 15:28:01 -06:00
tests.py Okay, now we are getting somewhere. 2014-05-22 21:31:31 +09:30