chore: import jquery so dynamic_inlines.js source map works (#4482)

This commit is contained in:
Jennifer Richards 2022-09-21 14:04:39 -03:00 committed by GitHub
parent 143877ec3d
commit d7bdffc89d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,8 @@ http://www.arnebrodowski.de/blog/507-Add-and-remove-Django-Admin-Inlines-with-Ja
field as primary key. Also for some reason the "active" boolean field doesn't get saved properly field as primary key. Also for some reason the "active" boolean field doesn't get saved properly
if the checkbox input has an empty "value" argument. if the checkbox input has an empty "value" argument.
*/ */
import $ from 'jquery';
function increment_form_ids(el, to, name) { function increment_form_ids(el, to, name) {
var from = to-1 var from = to-1
$(':input', $(el)).each(function(i,e){ $(':input', $(el)).each(function(i,e){