Opened 10 years ago

Closed 10 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: no
Needs tests: no Patch needs improvement: no
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...

Change History (1)

comment:1 Changed 10 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(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.

Note: See TracTickets for help on using tickets.
Back to Top