Actions
Bug #11785
openFilter by identifier is broken for a table of marks
Start date:
07/27/2022
Due date:
% Done:
0%
Estimated time:
Detected in build:
git
Platform:
Published in build:
Description
When I tried to filter out marks to get a particular one with a given identifier, I got the following error:
[27.Jul.2022 13:30:13] ["Значение “['149749de-f466-45a9-83a1-706a645d28f7']” не является верным UUID-ом."] Traceback (most recent call last): File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py", line 2614, in to_python return uuid.UUID(**{input_form: value}) File "/usr/local/python3.10-klever/lib/python3.10/uuid.py", line 174, in __init__ hex = hex.replace('urn:', '').replace('uuid:', '') AttributeError: 'list' object has no attribute 'replace' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 84, in view return self.dispatch(request, *args, **kwargs) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch return super().dispatch(request, *args, **kwargs) File "/home/novikov/work/klever/bridge/tools/profiling.py", line 168, in dispatch return getattr(super(), 'dispatch')(request, *args, **kwargs) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 119, in dispatch return handler(request, *args, **kwargs) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 185, in get context = self.get_context_data(**kwargs) File "/home/novikov/work/klever/bridge/marks/views.py", line 64, in get_context_data context['tabledata'] = SafeMarksTable(self.request.user, self.get_view(VIEW_TYPES[8]), self.request.GET) File "/home/novikov/work/klever/bridge/marks/tables.py", line 626, in __init__ super(SafeMarksTable, self).__init__(user, view, query_params) File "/home/novikov/work/klever/bridge/marks/tables.py", line 417, in __init__ self.paginator, self.page = self.get_queryset() File "/home/novikov/work/klever/bridge/marks/tables.py", line 532, in get_queryset queryset = queryset.filter(**qs_filters).order_by(ordering).select_related(*select_related).only(*select_only) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1071, in filter return self._filter_or_exclude(False, args, kwargs) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1089, in _filter_or_exclude clone._filter_or_exclude_inplace(negate, args, kwargs) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1096, in _filter_or_exclude_inplace self._query.add_q(Q(*args, **kwargs)) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1466, in add_q clause, _ = self._add_q(q_object, self.used_aliases) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1496, in _add_q child_clause, needed_inner = self.build_filter( File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1412, in build_filter condition = self.build_lookup(lookups, col, value) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1242, in build_lookup lookup = lookup_class(lhs, rhs) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/db/models/lookups.py", line 27, in __init__ self.rhs = self.get_prep_lookup() File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/db/models/lookups.py", line 85, in get_prep_lookup return self.lhs.output_field.get_prep_value(self.rhs) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py", line 2598, in get_prep_value return self.to_python(value) File "/home/novikov/work/klever/venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py", line 2616, in to_python raise exceptions.ValidationError( django.core.exceptions.ValidationError: ["Значение “['149749de-f466-45a9-83a1-706a645d28f7']” не является верным UUID-ом."]
No data to display
Actions