From 89bfaca3a86e31198cad06c4af6873d439fcb6bb Mon Sep 17 00:00:00 2001 From: Martnart <64293438+emdede@users.noreply.github.com> Date: Tue, 5 Mar 2024 19:55:29 +0100 Subject: [PATCH] Trigger change event in dismissRelatedLookupPopup --- grappelli/static/admin/js/admin/RelatedObjectLookups.js | 1 + 1 file changed, 1 insertion(+) diff --git a/grappelli/static/admin/js/admin/RelatedObjectLookups.js b/grappelli/static/admin/js/admin/RelatedObjectLookups.js index 586dc4cc9..1fd6a7655 100644 --- a/grappelli/static/admin/js/admin/RelatedObjectLookups.js +++ b/grappelli/static/admin/js/admin/RelatedObjectLookups.js @@ -52,6 +52,7 @@ } // GRAPPELLI CUSTOM: element focus elem.focus(); + $(elem).trigger('change'); win.close(); }