django-polymorphic/polymorphic
hottwaj 3e718d305e Changed methods used for traversing subclasses and superclasses of a given model.
Now uses model._meta.parents to determine superclasses.  _meta.parents is a dict of superclass: field_to_superclass pairs.

By using the field name of field_to_superclass, we can work out the field to use the django_polymorphic accessor on, even if a user-specified OneToOneField to parent is is used (with parent_link=True) to get to the parent in the inheritance hierarachy.

For subclasses, the path to the subclasses can be manually specified by the user if they use a 'related_name' on the OneToOneField from the subclass to the superclass.  I have changed the code to also support 'related_name' if present
2014-02-18 18:00:18 +00:00
..
locale Adds a french translation. 2013-11-29 18:18:55 +01:00
templates/admin/polymorphic Simplifies the two remaining templates (for grappelli support). 2013-07-18 16:38:14 +02:00
templatetags Porting to Python 3.2 2013-05-20 16:03:21 +02:00
__init__.py Porting to Python 3.2 2013-05-20 16:03:21 +02:00
__version__.py Bump version to 0.5.3 2013-09-17 11:33:56 +02:00
admin.py Pass ``/admin/app/model/ID/...`` URLs to the correct admin backend. 2013-09-17 11:02:38 +02:00
base.py Optimize NewBase test of six.with_metaclass() for Django 1.5+ 2014-02-13 10:43:33 +01:00
manager.py Porting to Python 3.2 2013-05-20 16:03:21 +02:00
models.py IMPORTANT: import path changed, it's now: "from polymorphic import PolymorphicModel, ..." 2010-02-22 16:16:00 +01:00
polymorphic_model.py Changed methods used for traversing subclasses and superclasses of a given model. 2014-02-18 18:00:18 +00:00
query.py Fix .non_polymorphic(), returns a copy of the queryset 2013-09-19 19:36:05 +02:00
query_translate.py Fix unwanted `___` handling when a fieldname starts with an underscore. 2013-07-22 10:21:00 +02:00
showfields.py Porting to Python 3.2 2013-05-20 16:03:21 +02:00
tests.py assertQuerysetEquals requires an ordered queryset 2013-05-24 15:17:44 -06:00
tools_for_tests.py Port new code to Python 3 as well, fix six.with_metaclass() issues 2013-05-20 16:03:21 +02:00