From bba8db1210946755e439c3932f86d5a8b54007b9 Mon Sep 17 00:00:00 2001 From: Diederik van der Boor Date: Tue, 24 Jul 2012 21:55:01 +0200 Subject: [PATCH] Also update the DOCS for the get_child_models() admin change. --- DOCS.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DOCS.rst b/DOCS.rst index 528f97e..d0974e0 100644 --- a/DOCS.rst +++ b/DOCS.rst @@ -179,8 +179,7 @@ The parent model needs to inherit ``PolymorphicParentModelAdmin``, and implement * ``base_model`` should be set * ``child_models`` should be set, or: - * ``get_admin_for_model()`` should return the model class for the child model. - * ``get_child_model_classes()`` should return a list of all child model classes. + * ``get_child_models()`` should return a list with (Model, ModelAdmin) tuple. The exact implementation can depend on the way your module is structured. For simple inheritance situations, ``child_models`` is best suited.