Opened 7 years ago

Closed 7 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:

Description

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

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