﻿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
19426	EmptyQuerySet.distinct does not have the same signature as QuerySet.distinct()	anonymous	Claude Paroz	"QuerySet.distinct is:

{{{
    def distinct(self, *field_names):
}}}

but EmptyQuerySet.distinct is :

{{{
    def distinct(self, fields=None):
}}}

when called like this:

{{{
    qs = qs.distinct('field1', 'field2')
}}}

if qs is empty then it raises:

{{{
TypeError: distinct() takes at most 2 arguments (3 given)
}}}"	Bug	closed	Database layer (models, ORM)	dev	Normal	fixed		Benjamin Dauvergne hongshuning@…	Ready for checkin	1	0	0	0	1	0
