Verified Commit d844bccb authored by Sli's avatar Sli

pedagogy: improve performances on json mode for UVListView

parent 49f928e7
Pipeline #1915 passed with stage
in 25 minutes and 46 seconds
......@@ -158,10 +158,9 @@ class UVListView(CanViewMixin, CanCreateUVFunctionMixin, ListView):
template_name = "pedagogy/guide.jinja"
def get(self, *args, **kwargs):
resp = super(UVListView, self).get(*args, **kwargs)
if not self.request.GET.get("json", None):
# Return normal full template response
return resp
return super(UVListView, self).get(*args, **kwargs)
# Return serialized response
return HttpResponse(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment