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.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"
|
||||||
|
|
Loading…
Reference in New Issue