Also update the DOCS for the get_child_models() admin change.

fix_request_path_info
Diederik van der Boor 2012-07-24 21:55:01 +02:00
parent 0d5f2fd943
commit bba8db1210
1 changed files with 1 additions and 2 deletions

View File

@ -179,8 +179,7 @@ The parent model needs to inherit ``PolymorphicParentModelAdmin``, and implement
* ``base_model`` should be set * ``base_model`` should be set
* ``child_models`` should be set, or: * ``child_models`` should be set, or:
* ``get_admin_for_model()`` should return the model class for the child model. * ``get_child_models()`` should return a list with (Model, ModelAdmin) tuple.
* ``get_child_model_classes()`` should return a list of all child model classes.
The exact implementation can depend on the way your module is structured. The exact implementation can depend on the way your module is structured.
For simple inheritance situations, ``child_models`` is best suited. For simple inheritance situations, ``child_models`` is best suited.