Skip to content

Commit

Permalink
Merge pull request #1 from domguard/inline_instance_obj_param
Browse files Browse the repository at this point in the history
Updated docs/ref/contrib/admin/index.txt : add get_inline_instances method
  • Loading branch information
sjaensch committed Aug 3, 2012
2 parents 4b97f44 + db3dc04 commit 1c1d245
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/ref/contrib/admin/index.txt
Expand Up @@ -1047,6 +1047,14 @@ templates used by the :class:`ModelAdmin` views:
changelist that will be linked to the change view, as described in the
:attr:`ModelAdmin.list_display_links` section.

.. method:: ModelAdmin.get_inline_instances(self, request, obj=None)

.. versionadded:: 1.5

The ``get_inline_instances`` method is given the ``HttpRequest`` and the
``obj`` being edited (or ``None`` on an add form) and is expected to return
a ``list`` or ``tuple`` of :class:`~django.contrib.admin.InlineModelAdmin` objects, as described above in the :class:`~django.contrib.admin.InlineModelAdmin` section.

.. method:: ModelAdmin.get_urls(self)

The ``get_urls`` method on a ``ModelAdmin`` returns the URLs to be used for
Expand Down

0 comments on commit 1c1d245

Please sign in to comment.