Merge pull request #18997 from antoinekh/18964_fix_bulk_edit_all

Fixes #18964 Select all with bulk edit only changes the currently visible objects
This commit is contained in:
bctiemann 2025-03-31 18:36:04 -04:00 committed by GitHub
commit 12231ad71a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -700,6 +700,10 @@ class BulkEditView(GetReturnURLMixin, BaseMultiObjectView):
else:
logger.debug("Form validation failed")
else:
form = self.form(initial=initial_data)
restrict_form_fields(form, request.user)
# Retrieve objects being edited
table = self.table(self.queryset.filter(pk__in=pk_list), orderable=False)
if not table.rows: