We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d067e13 + b954aba commit 2aec53dCopy full SHA for 2aec53d
jazzmin/static/jazzmin/js/change_form.js
@@ -134,7 +134,15 @@
134
else if ($carousel.length) { handleCarousel($carousel); }
135
else if ($collapsible.length) { handleCollapsible($collapsible); }
136
137
- applySelect2()
+ applySelect2();
138
+
139
+ $('body').on('change', '.related-widget-wrapper select', function(e) {
140
+ const event = $.Event('django:update-related');
141
+ $(this).trigger(event);
142
+ if (!event.isDefaultPrevented() && typeof(window.updateRelatedObjectLinks) !== 'undefined') {
143
+ updateRelatedObjectLinks(this);
144
+ }
145
+ });
146
});
147
148
// Apply select2 to all select boxes when new inline row is created
0 commit comments