Skip to content

Commit

Permalink
Merge pull request #3857 from allegro/fix-bulk-edit
Browse files Browse the repository at this point in the history
Fix bulk edit for some models
  • Loading branch information
hipek8 authored Oct 29, 2024
2 parents d852902 + 49f2b06 commit 8d1a3d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ralph/admin/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,9 @@ def get_queryset(self, request):
qs = super().get_queryset(request)
id_list = request.GET.getlist(BULK_EDIT_VAR_IDS, [])
if id_list:
qs = qs.filter(pk__in=id_list)
return qs
return self.model.objects.filter(id__in=id_list)
else:
return qs

def get_list_display(self, request):
"""
Expand Down

0 comments on commit 8d1a3d9

Please sign in to comment.