#23550: Normalize implementation of SingleRelatedObjectDescriptor.get_queryset()
and ReverseSingleRelatedObjectDescriptor.get_queryset().
-------------------------------------+-------------------------------------
     Reporter:  loic                 |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |                  Version:  master
    Component:  Database layer       |               Resolution:  fixed
  (models, ORM)                      |             Triage Stage:  Accepted
     Severity:  Normal               |      Needs documentation:  0
     Keywords:                       |  Patch needs improvement:  0
    Has patch:  1                    |                    UI/UX:  0
  Needs tests:  0                    |
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by Loic Bistuer <loic.bistuer@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"e043aae9bb2e3fa244f59b07fc16f57476cb80ff"]:
 {{{
 #!CommitTicketReference repository=""
 revision="e043aae9bb2e3fa244f59b07fc16f57476cb80ff"
 Fixed #23550 -- Normalized get_queryset() of RelatedObjectDescriptor
 and ReverseSingleRelatedObjectDescriptor so they actually return QuerySet
 instances.

 Also ensured that SingleRelatedObjectDescriptor.get_queryset() accounts
 for use_for_related_fields=True.

 This cleanup lays the groundwork for #23533.

 Thanks Anssi Kääriäinen for the review.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23550#comment:3>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.c7437bfe2c825327466b5ce65dc3244c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to