We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Seen with at least DLM and GC apps, example traceback:
nautobot-1 | 15:46:41.534 ERROR django.request : nautobot-1 | Internal Server Error: /plugins/nautobot-device-lifecycle-mgmt/validated-software-device-report/ nautobot-1 | Traceback (most recent call last): nautobot-1 | File "/usr/local/lib/python3.11/site-packages/django/core/handlers/exception.py", line 47, in inner nautobot-1 | response = get_response(request) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/django/core/handlers/base.py", line 181, in _get_response nautobot-1 | response = wrapped_callback(request, *callback_args, **callback_kwargs) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/django/views/generic/base.py", line 70, in view nautobot-1 | return self.dispatch(request, *args, **kwargs) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/nautobot/core/views/mixins.py", line 165, in dispatch nautobot-1 | return super().dispatch(request, *args, **kwargs) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/django/views/generic/base.py", line 98, in dispatch nautobot-1 | return handler(request, *args, **kwargs) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/nautobot/core/views/generic.py", line 272, in get nautobot-1 | table = self.table(self.queryset, user=request.user, order_by=order_by) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/nautobot/core/tables.py", line 149, in __init__ nautobot-1 | self.data.data = self.data.data.select_related(*select_fields).prefetch_related(*prefetch_fields) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/django/db/models/query.py", line 1051, in select_related nautobot-1 | raise TypeError("Cannot call select_related() after .values() or .values_list()") nautobot-1 | TypeError: Cannot call select_related() after .values() or .values_list() nautobot-1 | ERROR:django.request:Internal Server Error: /plugins/nautobot-device-lifecycle-mgmt/validated-software-device-report/ nautobot-1 | Traceback (most recent call last): nautobot-1 | File "/usr/local/lib/python3.11/site-packages/django/core/handlers/exception.py", line 47, in inner nautobot-1 | response = get_response(request) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/django/core/handlers/base.py", line 181, in _get_response nautobot-1 | response = wrapped_callback(request, *callback_args, **callback_kwargs) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/django/views/generic/base.py", line 70, in view nautobot-1 | return self.dispatch(request, *args, **kwargs) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/nautobot/core/views/mixins.py", line 165, in dispatch nautobot-1 | return super().dispatch(request, *args, **kwargs) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/django/views/generic/base.py", line 98, in dispatch nautobot-1 | return handler(request, *args, **kwargs) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/nautobot/core/views/generic.py", line 272, in get nautobot-1 | table = self.table(self.queryset, user=request.user, order_by=order_by) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/nautobot/core/tables.py", line 149, in __init__ nautobot-1 | self.data.data = self.data.data.select_related(*select_fields).prefetch_related(*prefetch_fields) nautobot-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nautobot-1 | File "/usr/local/lib/python3.11/site-packages/django/db/models/query.py", line 1051, in select_related nautobot-1 | raise TypeError("Cannot call select_related() after .values() or .values_list()") nautobot-1 | TypeError: Cannot call select_related() after .values() or .values_list()
Appears to have been introduced by #5215.
The text was updated successfully, but these errors were encountered:
Fix #5254.
7e82439
test_views.py
Fix #5254. (#5256)
8eb187c
glennmatthews
Successfully merging a pull request may close this issue.
Environment
Seen with at least DLM and GC apps, example traceback:
Appears to have been introduced by #5215.
The text was updated successfully, but these errors were encountered: