Closed gpelouze closed 9 months ago
When navigating to /vre-api/admin, we get:
Internal Server Error: /vre-api/admin/ Traceback (most recent call last): File "/opt/venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 185, in _get_response response = middleware_method( ^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.12/site-packages/django_keycloak_auth/middleware.py", line 90, in process_view is_api_view = True if str(view_func.cls.__qualname__) == "WrappedAPIView" else False ^^^^^^^^^^^^^ AttributeError: 'function' object has no attribute 'cls'
I suspect it's related to https://github.com/QCDIS/VREPaaS/pull/170
When navigating to /vre-api/admin, we get:
I suspect it's related to https://github.com/QCDIS/VREPaaS/pull/170