diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2015-11-07 10:46:50 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-21 13:50:06 -0500 |
| commit | 5399ccc0f4257676981ef7937ea84be36f7058a6 (patch) | |
| tree | b8ae87d4584d7d6f94d2bc75b4f8f7706e4aa9b2 /docs | |
| parent | 63a6a653d4282f74e35582d41ca507139c9cfbe1 (diff) | |
Fixed #494 -- Added ability to specify classes on admin inline fieldsets.
This includes the ability to collapse inlines by specifying a class named
'collapse'.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 10 | ||||
| -rw-r--r-- | docs/releases/1.10.txt | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 4173c063dc..a36859c012 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -2058,6 +2058,16 @@ The ``InlineModelAdmin`` class adds: parent model fails to validate, it may be left in an inconsistent state as described in the warning in :ref:`validation-on-modelform`. +.. attribute:: InlineModelAdmin.classes + + .. versionadded:: 1.10 + + A list or tuple containing extra CSS classes to apply to the fieldset that + is rendered for the inlines. Defaults to ``None``. As with classes + configured in :attr:`~ModelAdmin.fieldsets`, inlines with a ``collapse`` + class will be initially collapsed and their header will have a small "show" + link. + .. attribute:: InlineModelAdmin.extra This controls the number of extra forms the formset will display in diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt index 7be22b12f4..09c437f941 100644 --- a/docs/releases/1.10.txt +++ b/docs/releases/1.10.txt @@ -42,6 +42,11 @@ Minor features * All inline JavaScript is removed so you can enable the ``Content-Security-Policy`` HTTP header if you wish. +* The new :attr:`InlineModelAdmin.classes + <django.contrib.admin.InlineModelAdmin.classes>` attribute allows specifying + classes on inline fieldsets. Inlines with a ``collapse`` class will be + initially collapsed and their header will have a small "show" link. + :mod:`django.contrib.admindocs` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
