Re: [Django] #35413: FieldError: Unsupported lookup error message can be confusing.

16 views
Skip to first unread message

Django

unread,
May 26, 2024, 12:00:24 PMMay 26
to django-...@googlegroups.com
#35413: FieldError: Unsupported lookup error message can be confusing.
-------------------------------------+-------------------------------------
Reporter: Alex | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Amir Karimi):

Replying to [comment:1 Sarah Boyce]:
> Replicated, this is also true of other fields.
> I agree that saying something like `Unsupported lookup 'gt__foo'`,
`Unsupported lookup 'gt__'`, and `Unsupported lookup 'gt__lt'` would be
clearer.
If we just pass down `LOOKUP_SEP.join(arg.split(LOOKUP_SEP)[1:])` to the
`build_lookup` method, it can print out the input lookup entirely.
It outputs`'gt__foo'`, `'gt__' `, and `'gt__lt' `.
It can be an argument to the `try_transform` method. Not sure wether
`name` is needed or not. Thoughts?
--
Ticket URL: <https://code.djangoproject.com/ticket/35413#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 16, 2024, 3:57:45 AMJun 16
to django-...@googlegroups.com
#35413: FieldError: Unsupported lookup error message can be confusing.
-------------------------------------+-------------------------------------
Reporter: Alex | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by wookkl):

Cani I resolve this Issue?
--
Ticket URL: <https://code.djangoproject.com/ticket/35413#comment:3>

Django

unread,
Jun 16, 2024, 4:00:15 AMJun 16
to django-...@googlegroups.com
#35413: FieldError: Unsupported lookup error message can be confusing.
-------------------------------------+-------------------------------------
Reporter: Alex | Owner: wookkl
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by wookkl):

* owner: nobody => wookkl
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/35413#comment:4>

Django

unread,
Jun 21, 2024, 3:05:13 AMJun 21
to django-...@googlegroups.com
#35413: FieldError: Unsupported lookup error message can be confusing.
-------------------------------------+-------------------------------------
Reporter: Alex | Owner: wookkl
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by wookkl):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35413#comment:5>

Django

unread,
Jun 23, 2024, 9:30:35 AM (12 days ago) Jun 23
to django-...@googlegroups.com
#35413: FieldError: Unsupported lookup error message can be confusing.
-------------------------------------+-------------------------------------
Reporter: Alex | Owner: wookkl
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by wookkl):

PR [https://github.com/django/django/pull/18293]
--
Ticket URL: <https://code.djangoproject.com/ticket/35413#comment:6>

Django

unread,
Jul 4, 2024, 4:02:03 AM (yesterday) Jul 4
to django-...@googlegroups.com
#35413: FieldError: Unsupported lookup error message can be confusing.
-------------------------------------+-------------------------------------
Reporter: Alex | Owner: wookkl
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35413#comment:7>
Reply all
Reply to author
Forward
0 new messages