﻿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
34421	QuerySet.update() on querysets in descending order by annotations.	WE1	WE1	"When I execute 
{{{
Model.objects.annotate(message_length=Length('message')).order_by('-message_length').update(text=""Can I come on board?"")
}}}

I get the error 

{{{
FieldError: Cannot resolve keyword 'message_length' into field. Choices are: message, id, text, x
}}}

because the code ignores the descending case.
"	Bug	closed	Database layer (models, ORM)	4.1	Normal	fixed	update,order_by		Ready for checkin	1	0	0	0	0	0
