﻿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
14476	annotate, default aggregation naming and filter annoyance	dirleyrls	Ramiro Morales	"Going straight to the point, if I do the following:

{{{
from django.db import models
...
class Answer(models.Model):
    entry = models.ForeignKey(Question)
...
qsa = Question.objects.annotate(answer_count=models.Count('answer')).filter(answer_count=0)
qsb = Question.objects.annotate(models.Count('answer')).filter(answer__count=0)
}}}

qsa will be correctly evaluted, but qsb will raise a ""FieldError: Cannot resolve keyword 'count' into field. Choices are ... answer_ _count"".

Now, isn't this annoying? The error message is lying!"	Bug	closed	Database layer (models, ORM)	dev	Normal	fixed	annotate, FieldError		Accepted	1	0	1	1	0	0
