Refactored file structure to fix docker build, fixed Unfold configuration.

This commit is contained in:
boris committed 2025-11-11 09:08:09 +00:00
1 parent a82d0a5396
commit c488f18cc6
181 files changed
+46 -4

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
'use strict';
{
const $ = django.jQuery;
const fields = $('#django-admin-prepopulated-fields-constants').data('prepopulatedFields');
$.each(fields, function(index, field) {
$(
'.empty-form .form-row .field-' + field.name +
', .empty-form.form-row .field-' + field.name +
', .empty-form .form-row.field-' + field.name
).addClass('prepopulated_field');
$(field.id).data('dependency_list', field.dependency_list).prepopulate(
field.dependency_ids, field.maxLength, field.allowUnicode
);
});
}