"Join on Field 'xyz' no permitted" error can be misleading
|Reported by:||belgabor||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||no||Needs documentation:|
|Needs tests:||Patch needs improvement:|
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...