update assets

This commit is contained in:
2023-08-02 10:14:46 +00:00
parent f4991b863d
commit 51a233ce92
5165 changed files with 164691 additions and 48605 deletions

View File

@@ -27,9 +27,7 @@
$('.admin-autocomplete').not('[name*=__prefix__]').djangoAdminSelect2();
});
$(document).on('formset:added', (function() {
return function(event, $newFormset) {
return $newFormset.find('.admin-autocomplete').djangoAdminSelect2();
};
})(this));
document.addEventListener('formset:added', (event) => {
$(event.target).find('.admin-autocomplete').djangoAdminSelect2();
});
}