Fixed 500 error when federation is disabled and application+json is requested
This commit is contained in:
parent
3300634297
commit
fdeb5ef8ae
|
@ -204,7 +204,8 @@ def get_api_response(request, url):
|
||||||
except urls.exceptions.Resolver404:
|
except urls.exceptions.Resolver404:
|
||||||
return http.HttpResponseNotFound()
|
return http.HttpResponseNotFound()
|
||||||
response = match.func(request, *match.args, **match.kwargs)
|
response = match.func(request, *match.args, **match.kwargs)
|
||||||
response.render()
|
if hasattr(response, "render"):
|
||||||
|
response.render()
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue