From b2afe396635e2de5b3a917a61350cd96fbde9ab7 Mon Sep 17 00:00:00 2001 From: James Bennett Date: Thu, 20 Jun 2013 01:51:20 -0500 Subject: [1.6.x] Fixed #19695 -- Retitle "Form Media" to "Form Assets". Backport of c0f03175ce from master --- docs/ref/contrib/admin/index.txt | 10 +++++----- docs/ref/forms/widgets.txt | 9 ++++----- docs/ref/settings.txt | 2 +- 3 files changed, 10 insertions(+), 11 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index a22a51e8fb..e5e9428805 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1554,13 +1554,13 @@ instances which allow you to easily customize the response data before rendering. For more details, see the :doc:`TemplateResponse documentation `. -.. _modeladmin-media-definitions: +.. _modeladmin-asset-definitions: -``ModelAdmin`` media definitions +``ModelAdmin`` asset definitions -------------------------------- There are times where you would like add a bit of CSS and/or JavaScript to -the add/change views. This can be accomplished by using a Media inner class +the add/change views. This can be accomplished by using a ``Media`` inner class on your ``ModelAdmin``:: class ArticleAdmin(admin.ModelAdmin): @@ -1572,8 +1572,8 @@ on your ``ModelAdmin``:: The :doc:`staticfiles app ` prepends :setting:`STATIC_URL` (or :setting:`MEDIA_URL` if :setting:`STATIC_URL` is -``None``) to any media paths. The same rules apply as :ref:`regular media -definitions on forms `. +``None``) to any asset paths. The same rules apply as :ref:`regular asset +definitions on forms `. jQuery ~~~~~~ diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index 341574ad37..5b66776cfc 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -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" ` as a member of the -subclass, or :ref:`create a property "media" `, returning an -instance of that class. +:ref:`define a "Media" inner class ` or +:ref:`create a "media" property `. These methods involve somewhat advanced Python programming and are described in -detail in the :doc:`Form Media ` topic guide. +detail in the :doc:`Form Assets ` topic guide. .. _base-widget-classes: diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 215931768c..f700f6e191 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -2487,7 +2487,7 @@ URL to use when referring to static files located in :setting:`STATIC_ROOT`. Example: ``"/static/"`` or ``"http://static.example.com/"`` If not ``None``, this will be used as the base path for -:ref:`media definitions` and the +:ref:`asset definitions` (the ``Media`` class) and the :doc:`staticfiles app`. It must end in a slash if set to a non-empty value. -- cgit v1.3