You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AttributeError: 'HttpResponseNotAllowed' object has no attribute 'render'
(3 additional frame(s) were not displayed)
...
File "django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "django/utils/decorators.py", line 67, in _wrapper
return bound_func(*args, **kwargs)
File "django/views/decorators/http.py", line 99, in inner
response = func(request, *args, **kwargs)
File "kolibri/core/decorators.py", line 374, in inner_func
render_and_cache(response, CACHE_KEY_TEMPLATE.format(request.path))
File "kolibri/core/decorators.py", line 342, in render_and_cache
response.render()
The text was updated successfully, but these errors were encountered:
@rtibbles It's just a simple fix according to me. We just have to check whether the response object has the render attribute or not before calling response.render() in the render_and_cache function. Could you please assign this issue to me?
Thanks :)
AttributeError: 'HttpResponseNotAllowed' object has no attribute 'render'
Sentry Issue: KOLIBRI-BACKEND-2BQ
The text was updated successfully, but these errors were encountered: