mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #19695 -- Retitle "Form Media" to "Form Assets".
This commit is contained in:
committed by
Tim Graham
parent
660c30ed95
commit
c0f03175ce
@@ -171,16 +171,15 @@ You can also set the HTML ``id`` using :attr:`~Widget.attrs`. See
|
||||
Styling widget classes
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
With widgets, it is possible to add media (``css`` and ``javascript``)
|
||||
With widgets, it is possible to add assets (``css`` and ``javascript``)
|
||||
and more deeply customize their appearance and behavior.
|
||||
|
||||
In a nutshell, you will need to subclass the widget and either
|
||||
:ref:`define a class "Media" <media-as-a-static-definition>` as a member of the
|
||||
subclass, or :ref:`create a property "media" <dynamic-property>`, returning an
|
||||
instance of that class.
|
||||
:ref:`define a "Media" inner class <assets-as-a-static-definition>` or
|
||||
:ref:`create a "media" property <dynamic-property>`.
|
||||
|
||||
These methods involve somewhat advanced Python programming and are described in
|
||||
detail in the :doc:`Form Media </topics/forms/media>` topic guide.
|
||||
detail in the :doc:`Form Assets </topics/forms/media>` topic guide.
|
||||
|
||||
.. _base-widget-classes:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user