mirror of
https://github.com/django/django.git
synced 2025-03-03 13:34:26 +00:00
Replaced fictional class 'extrapretty' in admin fieldsets docs.
This commit is contained in:
parent
069d713430
commit
50852b2c2c
@ -413,18 +413,20 @@ subclass::
|
|||||||
|
|
||||||
* ``classes``
|
* ``classes``
|
||||||
A list or tuple containing extra CSS classes to apply to the fieldset.
|
A list or tuple containing extra CSS classes to apply to the fieldset.
|
||||||
|
This can include any custom CSS class defined in the project, as well
|
||||||
|
as any of the CSS classes provided by Django. Within the default admin
|
||||||
|
site CSS stylesheet, two particularly useful classes are defined:
|
||||||
|
``collapse`` and ``wide``.
|
||||||
|
|
||||||
Example::
|
Example::
|
||||||
|
|
||||||
{
|
{
|
||||||
"classes": ["wide", "extrapretty"],
|
"classes": ["wide", "collapse"],
|
||||||
}
|
}
|
||||||
|
|
||||||
Two useful classes defined by the default admin site stylesheet are
|
Fieldsets with the ``collapse`` style will be initially collapsed in
|
||||||
``collapse`` and ``wide``. Fieldsets with the ``collapse`` style
|
the admin and replaced with a small "click to expand" link. Fieldsets
|
||||||
will be initially collapsed in the admin and replaced with a small
|
with the ``wide`` style will be given extra horizontal space.
|
||||||
"click to expand" link. Fieldsets with the ``wide`` style will be
|
|
||||||
given extra horizontal space.
|
|
||||||
|
|
||||||
* ``description``
|
* ``description``
|
||||||
A string of optional extra text to be displayed at the top of each
|
A string of optional extra text to be displayed at the top of each
|
||||||
|
Loading…
x
Reference in New Issue
Block a user