#19426: EmptyQuerySet.distinct does not have the same signature as
QuerySet.distinct()
-------------------------------+--------------------
     Reporter:  anonymous      |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  master
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 QuerySet.distinct is:

 {{{
     def distinct(self, *field_names):
 }}}

 but EmptyQuerySet.distinct is :

 {{{
     def distinct(self, fields=None):
 }}}

 when called like this:

 {{{
     qs = qs.distinct('field1', 'field2')
 }}}

 if qs is empty then it raises:

 {{{
 TypeError: distinct() takes at most 2 arguments (3 given)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19426>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to