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
backend | Internal Server Error: /api/sitesettings backend | Traceback (most recent call last): backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/fields/__init__.py", line 2053, in get_prep_value backend | return int(value) backend | ^^^^^^^^^^ backend | TypeError: int() argument must be a string, a bytes-like object or a real number, not 'User' backend | backend | The above exception was the direct cause of the following exception: backend | backend | Traceback (most recent call last): backend | File "/usr/local/lib/python3.12/dist-packages/django/core/handlers/exception.py", line 55, in inner backend | response = get_response(request) backend | ^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/core/handlers/base.py", line 197, in _get_response backend | response = wrapped_callback(request, *callback_args, **callback_kwargs) backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/views/decorators/csrf.py", line 56, in wrapper_view backend | return view_func(*args, **kwargs) backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/views/generic/base.py", line 104, in view backend | return self.dispatch(request, *args, **kwargs) backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/rest_framework/views.py", line 509, in dispatch backend | response = self.handle_exception(exc) backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/rest_framework/views.py", line 469, in handle_exception backend | self.raise_uncaught_exception(exc) backend | File "/usr/local/lib/python3.12/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception backend | raise exc backend | File "/usr/local/lib/python3.12/dist-packages/rest_framework/views.py", line 506, in dispatch backend | response = handler(request, *args, **kwargs) backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/code/api/views/views.py", line 119, in post backend | AsyncTask(download_models, User.objects.get(id=request.user)).run() backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/manager.py", line 87, in manager_method backend | return getattr(self.get_queryset(), name)(*args, **kwargs) backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/query.py", line 623, in get backend | clone = self._chain() if self.query.combinator else self.filter(*args, **kwargs) backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/query.py", line 1436, in filter backend | return self._filter_or_exclude(False, args, kwargs) backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/query.py", line 1454, in _filter_or_exclude backend | clone._filter_or_exclude_inplace(negate, args, kwargs) backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/query.py", line 1461, in _filter_or_exclude_inplace backend | self._query.add_q(Q(*args, **kwargs)) backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/sql/query.py", line 1546, in add_q backend | clause, _ = self._add_q(q_object, self.used_aliases) backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/sql/query.py", line 1577, in _add_q backend | child_clause, needed_inner = self.build_filter( backend | ^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/sql/query.py", line 1492, in build_filter backend | condition = self.build_lookup(lookups, col, value) backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/sql/query.py", line 1319, in build_lookup backend | lookup = lookup_class(lhs, rhs) backend | ^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/lookups.py", line 27, in __init__ backend | self.rhs = self.get_prep_lookup() backend | ^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/lookups.py", line 341, in get_prep_lookup backend | return super().get_prep_lookup() backend | ^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/lookups.py", line 85, in get_prep_lookup backend | return self.lhs.output_field.get_prep_value(self.rhs) backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend | File "/usr/local/lib/python3.12/dist-packages/django/db/models/fields/__init__.py", line 2055, in get_prep_value backend | raise e.__class__( backend | TypeError: Field 'id' expected a number but got <User: xxx>.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
📝 Description of issue:
Please provide additional information:
The text was updated successfully, but these errors were encountered: