Pass the right argument to queryset_mutate
This commit is contained in:
parent
04d41f7c97
commit
d808ceebac
|
@ -63,11 +63,13 @@ class ObjectList(RestrictedViewMixin, ObjectNameMixin, ListView):
|
|||
|
||||
self.request = request
|
||||
self.object_list = self.get_queryset(**kwargs)
|
||||
self.queryset_mutate(self.queryset)
|
||||
|
||||
if isinstance(self.object_list, HttpResponse):
|
||||
return self.object_list
|
||||
if isinstance(self.object_list, HttpResponseBadRequest):
|
||||
return self.object_list
|
||||
|
||||
self.queryset_mutate(self.object_list)
|
||||
allow_empty = self.get_allow_empty()
|
||||
|
||||
self.template_name = f"mixins/wm/{type}.html"
|
||||
|
|
Loading…
Reference in New Issue