Fixed #19426 -- Adapted EmptyQuerySet.distinct signature

1.5-only change, as EmptyQuerySet will be refactored in 1.6.
Thanks hongshuning@gmail.com for the patch.
This commit is contained in:
Claude Paroz 2013-01-03 18:03:51 +01:00
parent 70cc95d1cc
commit a893ee3315
1 changed files with 1 additions and 1 deletions

View File

@ -1251,7 +1251,7 @@ class EmptyQuerySet(QuerySet):
"""
return self
def distinct(self, fields=None):
def distinct(self, *field_names):
"""
Always returns EmptyQuerySet.
"""