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

19 views
Skip to first unread message

Django

unread,
May 26, 2024, 12:00:24 PM5/26/24
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 AM6/16/24
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 AM6/16/24
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 AM6/21/24
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 AM6/23/24
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 AM7/4/24
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>

Django

unread,
Jul 8, 2024, 6:49:06 AM7/8/24
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: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin

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

Django

unread,
Jul 9, 2024, 3:15:49 AM7/9/24
to django-...@googlegroups.com
#35413: FieldError: Unsupported lookup error message can be confusing.
-------------------------------------+-------------------------------------
Reporter: Alex | Owner: wookkl
Type: | Status: closed
Cleanup/optimization |
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"759abc4dafef6860edb830c30754e6364ed9ea11" 759abc4d]:
{{{#!CommitTicketReference repository=""
revision="759abc4dafef6860edb830c30754e6364ed9ea11"
Fixed #35413 -- Made unsupported lookup error message more specific.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35413#comment:9>
Reply all
Reply to author
Forward
0 new messages