Changes between Initial Version and Version 1 of Ticket #34015
- Timestamp:
- Sep 15, 2022, 10:39:47 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34015 – Description
initial v1 52 52 {{{ 53 53 Traceback (most recent call last): 54 File "/opt/src/ _sandbox/django_bug.py", line 23, in <module>55 qs = Child.objects.filter( media_object_id__startswith='c')56 File "/opt/ venv/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method54 File "/opt/src/orm_test.py", line 26, in <module> 55 qs = Child.objects.filter(parent_object_id__startswith='c') 56 File "/opt/src/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 85, in manager_method 57 57 return getattr(self.get_queryset(), name)(*args, **kwargs) 58 File "/opt/ venv/lib/python3.9/site-packages/django/db/models/query.py", line 1071, in filter58 File "/opt/src/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1420, in filter 59 59 return self._filter_or_exclude(False, args, kwargs) 60 File "/opt/ venv/lib/python3.9/site-packages/django/db/models/query.py", line 1089, in _filter_or_exclude60 File "/opt/src/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1438, in _filter_or_exclude 61 61 clone._filter_or_exclude_inplace(negate, args, kwargs) 62 File "/opt/ venv/lib/python3.9/site-packages/django/db/models/query.py", line 1096, in _filter_or_exclude_inplace62 File "/opt/src/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1445, in _filter_or_exclude_inplace 63 63 self._query.add_q(Q(*args, **kwargs)) 64 File "/opt/ venv/lib/python3.9/site-packages/django/db/models/sql/query.py", line 1502, in add_q64 File "/opt/src/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1532, in add_q 65 65 clause, _ = self._add_q(q_object, self.used_aliases) 66 File "/opt/ venv/lib/python3.9/site-packages/django/db/models/sql/query.py", line 1532, in _add_q66 File "/opt/src/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1562, in _add_q 67 67 child_clause, needed_inner = self.build_filter( 68 File "/opt/ venv/lib/python3.9/site-packages/django/db/models/sql/query.py", line 1448, in build_filter68 File "/opt/src/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1478, in build_filter 69 69 condition = self.build_lookup(lookups, col, value) 70 File "/opt/ venv/lib/python3.9/site-packages/django/db/models/sql/query.py", line 1262, in build_lookup70 File "/opt/src/venv/lib/python3.10/site-packages/django/db/models/sql/query.py", line 1292, in build_lookup 71 71 raise FieldError( 72 72 django.core.exceptions.FieldError: Related Field got invalid lookup: startswith