Skip to content

Commit

Permalink
another django 4+ fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benzkji committed May 21, 2023
1 parent f92becb commit 0a9a7e5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.$) {
Expand Down

0 comments on commit 0a9a7e5

Please sign in to comment.