﻿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
14707	Allow an annotation to match a field name when using .values on a query set.	Andy McKay		"Ticket http://code.djangoproject.com/ticket/11256 has the unfortunate effect of stopping a values query from working. 

{{{
class Author(models.Model):
  last_updated = models.DateField()

class Book(models.Model):
  author = models.ForeignKey(Author, related_name='books')
  pubdate = models.DateField()
}}}


{{{
authors = Author.objects.values(""id"").annotate(last_updated=Max('books__pubdate'))
}}}

In this case we are using values to only use that one field and last_updated is no longer overriding anything."		closed	Database layer (models, ORM)	1.3-alpha		fixed	blocker, regression		Accepted	0	0	0	0	0	0
