﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23697	Confusing exception raised upon unknown field in queryset filter argument	Markus Bertheau	Michael Blatherwick	"`Choice.objects.filter(question__qestion_text__icontains='foo')`
`#################### typo here:  ^^`

raises

{{{
  File ""/home/markus/src/django/django/db/models/sql/query.py"", line 1181, in build_filter
    lookups, value)
  File ""/home/markus/src/django/django/db/models/fields/related.py"", line 1514, in get_lookup_constraint
    raise exceptions.FieldError('Relation fields do not support nested lookups')
FieldError: Relation fields do not support nested lookups
}}}

Which is very confusing. Is a better error message possible?

(This might have been the original cause of #23351.)"	Cleanup/optimization	closed	Database layer (models, ORM)	1.7	Normal	fixed			Ready for checkin	1	0	0	0	0	0
