Ticket #14816: inline_model_admin_docs_fix.diff

File inline_model_admin_docs_fix.diff, 1.8 KB (added by Greg Turner, 13 years ago)

InlineModelAdmin is correctly described.

  • docs/ref/contrib/admin/index.txt

    diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
    index 15a5ba2..5c6e77c 100644
    a b The difference between these two is merely the template used to render them.  
    10601060``InlineModelAdmin`` options
    10611061-----------------------------
    10621062
    1063 The ``InlineModelAdmin`` class is a subclass of ``ModelAdmin`` so it inherits
    1064 all the same functionality as well as some of its own:
     1063``InlineModelAdmin`` shares many of the same features as ``ModelAdmin``, and adds some of
     1064its own (the shared features are actually defined in the ``BaseModelAdmin`` superclass). The
     1065shared features are:
     1066
     1067- :attr:`~ModelAdmin.form`
     1068- :attr:`~ModelAdmin.fieldsets`
     1069- :attr:`~ModelAdmin.fields`
     1070- :attr:`~ModelAdmin.exclude`
     1071- :attr:`~ModelAdmin.filter_horizontal` and :attr:`~ModelAdmin.filter_vertical`
     1072- :attr:`~ModelAdmin.prepopulated_fields`
     1073- :attr:`~ModelAdmin.radio_fields`
     1074- :attr:`~ModelAdmin.raw_id_fields`
     1075 
     1076.. versionadded:: 1.1
     1077
     1078- :meth:`~ModelAdmin.formfield_for_foreignkey`
     1079- :meth:`~ModelAdmin.formfield_for_manytomany`
     1080
     1081.. versionadded:: 1.2
     1082
     1083- :attr:`~ModelAdmin.readonly_fields`
     1084- :attr:`~ModelAdmin.formfield_overrides`
     1085 
     1086
     1087The ``InlineModelAdmin`` class adds:
    10651088
    10661089.. attribute:: InlineModelAdmin.model
    10671090
    all the same functionality as well as some of its own:  
    11461169    Defaults to ``True``.
    11471170
    11481171
     1172.. method:: InlineModelAdmin.queryset(self, request)
     1173
     1174    The ``queryset`` method on an ``InlineModelAdmin`` returns a
     1175    :class:`~django.db.models.QuerySet` of all model instances that can be
     1176    edited by the inline admin control.
     1177
     1178
    11491179Working with a model with two or more foreign keys to the same parent model
    11501180---------------------------------------------------------------------------
    11511181
Back to Top