Also update the DOCS for the get_child_models() admin change.
parent
0d5f2fd943
commit
bba8db1210
3
DOCS.rst
3
DOCS.rst
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue