django-polymorphic/polymorphic
Diederik van der Boor 0d5f2fd943 Change the child model registration to fix raw_id_fields.
As discovered in django-polymorphic-tree and django-fluent-pages,
the raw_id_fields didn't work in Django 1.4 because the fields actively
check which models are actually registered in the admin site.

Hence, the parent admin site _registry is inserted in the child admin as
well. This also completely moves the initialisation of the child admin
into this class, using a `get_child_models()` function,
akin to the static `child_models` attribute.
2012-07-24 21:50:52 +02:00
..
management polymorphic_dumpdata management command functionality removed; 2010-10-20 09:31:42 +02:00
templates/admin/polymorphic Improve PolymorphicParentAdmin, simplify, fix templates 2012-07-13 16:01:58 +02:00
templatetags Added polymorphic admin interface 2012-07-05 23:16:46 +02:00
__init__.py PEP 8 cleaning 2011-12-20 18:59:50 +00:00
admin.py Change the child model registration to fix raw_id_fields. 2012-07-24 21:50:52 +02:00
base.py PEP 8 cleaning 2011-12-20 18:59:50 +00:00
compatibility_tools.py PEP 8 cleaning 2011-12-20 18:59:50 +00:00
manager.py Explicit is better than implicit 2012-01-09 16:47:59 +01: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 PEP 8 cleaning 2011-12-20 18:59:50 +00:00
query.py PEP 8 cleaning 2011-12-20 18:59:50 +00:00
query_translate.py PEP 8 cleaning 2011-12-20 18:59:50 +00:00
showfields.py PEP 8 cleaning 2011-12-20 18:59:50 +00:00
tests.py Fixed github issue 15 (query result incomplete with inheritance). Thanks to John Debs. 2011-01-24 17:03:23 +01:00
tools_for_tests.py PEP 8 cleaning 2011-12-20 18:59:50 +00:00