diff --git a/filer_addons/filer_gui/static/admin/filer_gui/js/inline.upload.js b/filer_addons/filer_gui/static/admin/filer_gui/js/inline.upload.js index 7cccc89..702fc41 100644 --- a/filer_addons/filer_gui/static/admin/filer_gui/js/inline.upload.js +++ b/filer_addons/filer_gui/static/admin/filer_gui/js/inline.upload.js @@ -91,6 +91,11 @@ var InlineUpload = (function($){ } function row_added(event, $row, name) { + if (!$row) { + // how django 4+ structures the formset:added event/callback (no more $row!?) + // we need the row to get the correct widget + $row = $(event.target); + } var $widget = $('.filer-gui-file-widget', $row) var widget = $widget[0]; if(!widget.$) {