Opened 5 years ago

Closed 5 years ago

#9778 closed (fixed)

"Join on Field 'xyz' no permitted" error can be misleading

Reported by: belgabor Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:


This error can be very frustrating for someone starting to get into django, as in some cases you did not mean to do a join, but mistyped a field lookup.
(For example using "regexp" instead of "regex" if you're also doing raw SQL sometimes...).

I suggest returning "Join on Field 'xyz' no permitted or mistyped field lookup 'abc'."
Would ahve saved me a lot of annoyed wtf's...

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [9620]) Fixed #9778 -- Added some special casing of the "Join on field 'abc'" error
message. It now gives an extra hint if there's a chance you just made a typo in
the lookup type.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.