Commit a893ee33 authored by Claude Paroz's avatar Claude Paroz
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.
parent 70cc95d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1251,7 +1251,7 @@ class EmptyQuerySet(QuerySet):
        """
        return self

    def distinct(self, fields=None):
    def distinct(self, *field_names):
        """
        Always returns EmptyQuerySet.
        """