QCDIS / VREPaaS

1 stars 0 forks source link

Admin interface is broken in v1.0.10-beta #190

Closed gpelouze closed 9 months ago

gpelouze commented 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