Skip to content
Snippets Groups Projects
Unverified Commit fdeb5ef8 authored by Agate's avatar Agate 💬
Browse files

Fixed 500 error when federation is disabled and application+json is requested

parent 33006342
No related branches found
No related tags found
No related merge requests found
......@@ -204,7 +204,8 @@ def get_api_response(request, url):
except urls.exceptions.Resolver404:
return http.HttpResponseNotFound()
response = match.func(request, *match.args, **match.kwargs)
response.render()
if hasattr(response, "render"):
response.render()
return response
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment