diff options
| author | Matthias Kestenholz <mk@feinheit.ch> | 2021-01-14 14:02:23 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-20 22:07:40 +0100 |
| commit | 41405a0b8e527e9eef18c8dd1170932c3d585186 (patch) | |
| tree | 269e2fa79a6a885313f1cc57a1ba871fd20051d7 /docs | |
| parent | 4cf4c2df56af806f03299a264535bc34f1b1199a (diff) | |
[3.2.x] Fixed #32371 -- Doc'd jquery.init.js dependency for admin widgets.
Backport of 7b3ec6bcc8309d5b2003d355fe6f78af89cfeb52 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index c6135ca5cb..8fc504913b 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -2228,7 +2228,10 @@ Django admin JavaScript makes use of the `jQuery`_ library. To avoid conflicts with user-supplied scripts or libraries, Django's jQuery (version 3.5.1) is namespaced as ``django.jQuery``. If you want to use jQuery in your own admin JavaScript without including a second copy, you can use the -``django.jQuery`` object on changelist and add/edit views. +``django.jQuery`` object on changelist and add/edit views. Also, your own admin +forms or widgets depending on ``django.jQuery`` must specify +``js=['admin/js/jquery.init.js', …]`` when :ref:`declaring form media assets +<assets-as-a-static-definition>`. .. versionchanged:: 3.1 |
