Browse files

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.
  • Loading branch information...
1 parent 70cc95d commit a893ee3315d6a134b46ff8c36c44a8efbbe34886 @claudep claudep committed Jan 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/query.py
View
2 django/db/models/query.py
@@ -1251,7 +1251,7 @@ def order_by(self, *field_names):
"""
return self
- def distinct(self, fields=None):
+ def distinct(self, *field_names):
"""
Always returns EmptyQuerySet.
"""

0 comments on commit a893ee3

Please sign in to comment.