Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gpelouze opened this issue Nov 29, 2023 · 0 comments · Fixed by #191
Closed

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

gpelouze opened this issue Nov 29, 2023 · 0 comments · Fixed by #191
Assignees
Labels
bug Something isn't working

Comments

@gpelouze
Copy link
Member

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 #170

@gpelouze gpelouze self-assigned this Nov 29, 2023
@gpelouze gpelouze added the bug Something isn't working label Nov 29, 2023
@gpelouze gpelouze linked a pull request Nov 30, 2023 that will close this issue
gpelouze added a commit that referenced this issue Nov 30, 2023
…1010-beta

remove unused keycloak dependency from vreapis to fix #190
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant