﻿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
27800	Crash with QuerySet.annotate(Length(...)).distinct()	Lex Berezhny	nobody	"After 3b2db6ec12ce7d4b32f60dd7713e5f23cac498b7, this query for `test/annotations/` crashes with `AttributeError: 'IntegerField' object has no attribute 'model'`.
{{{
Employee.objects.annotate(
    name_len=Length('first_name'),
).distinct('name_len').values_list('name_len', flat=True)
}}}
[https://github.com/django/django/pull/8003 PR]"	Bug	closed	Database layer (models, ORM)	1.11	Release blocker	fixed			Accepted	1	0	0	0	0	0
