diff --git a/django/db/models/query.py b/django/db/models/query.py
index f56d5d2..c88737c 100644
a
|
b
|
class EmptyQuerySet(QuerySet):
|
1236 | 1236 | """ |
1237 | 1237 | return self |
1238 | 1238 | |
1239 | | def distinct(self, fields=None): |
| 1239 | def distinct(self, *field_names): |
1240 | 1240 | """ |
1241 | 1241 | Always returns EmptyQuerySet. |
1242 | 1242 | """ |
diff --git a/tests/regressiontests/queries/tests.py b/tests/regressiontests/queries/tests.py
index e3e5150..67658b8 100644
a
|
b
|
class EmptyQuerySetTests(TestCase):
|
1958 | 1958 | self.assertQuerysetEqual(q.values(), []) |
1959 | 1959 | self.assertQuerysetEqual(q.values_list(), []) |
1960 | 1960 | |
| 1961 | def test_ticket_19426(self): |
| 1962 | # #19426 -- EmptyQuerySet.distinct does not have the same |
| 1963 | # signature as QuerySet.distinct. |
| 1964 | qs = Number.objects.none() |
| 1965 | qs = qs.distinct('pk', 'num') |
| 1966 | self.assertQuerysetEqual(qs, []) |
| 1967 | |
1961 | 1968 | |
1962 | 1969 | class ValuesQuerysetTests(BaseQuerysetTest): |
1963 | 1970 | def test_flat_values_lits(self): |