mirror of https://github.com/django/django.git
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:
parent
70cc95d1cc
commit
a893ee3315
|
@ -1251,7 +1251,7 @@ class EmptyQuerySet(QuerySet):
|
||||||
"""
|
"""
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def distinct(self, fields=None):
|
def distinct(self, *field_names):
|
||||||
"""
|
"""
|
||||||
Always returns EmptyQuerySet.
|
Always returns EmptyQuerySet.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue