Skip to content

Commit

Permalink
[3.1.x] Fixed #32371 -- Doc'd jquery.init.js dependency for admin wid…
Browse files Browse the repository at this point in the history
…gets.

Backport of 7b3ec6b from master
  • Loading branch information
matthiask authored and felixxm committed Jan 20, 2021
1 parent ed616ff commit 2a74248
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/ref/contrib/admin/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,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.0

Expand Down

0 comments on commit 2a74248

Please sign in to comment.