﻿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
32848	Bad error with invalid lookup on annotated field.	Gordon Wrigley	nobody	"This on Django 3.1.12 with Postgres and Python 3.8.6

(This is a little contrived)

`MyModel.objects.annotate(bob=F(""my_duration"")).values(""bob"")`

works fine, then if we add a bad lookup

`MyModel.objects.annotate(bob=F(""my_duration"")).values(""bob__fred"")`

we get an error saying ""Cannot resolve keyword 'bob' into field."" which is a misleading error."	Uncategorized	closed	Uncategorized	3.1	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
