Pass the right argument to queryset_mutate

This commit is contained in:
Mark Veidemanis 2023-02-11 16:44:07 +00:00
parent 04d41f7c97
commit d808ceebac
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 3 additions and 1 deletions

View File

@ -63,11 +63,13 @@ class ObjectList(RestrictedViewMixin, ObjectNameMixin, ListView):
self.request = request self.request = request
self.object_list = self.get_queryset(**kwargs) self.object_list = self.get_queryset(**kwargs)
self.queryset_mutate(self.queryset)
if isinstance(self.object_list, HttpResponse): if isinstance(self.object_list, HttpResponse):
return self.object_list return self.object_list
if isinstance(self.object_list, HttpResponseBadRequest): if isinstance(self.object_list, HttpResponseBadRequest):
return self.object_list return self.object_list
self.queryset_mutate(self.object_list)
allow_empty = self.get_allow_empty() allow_empty = self.get_allow_empty()
self.template_name = f"mixins/wm/{type}.html" self.template_name = f"mixins/wm/{type}.html"