#16856: Add a way to clear select_related
-------------------------------------+-------------------------------------
     Reporter:  carljm               |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Milestone:                       |                Component:  Database
      Version:  SVN                  |  layer (models, ORM)
     Keywords:                       |                 Severity:  Normal
    Has patch:  0                    |             Triage Stage:
  Needs tests:  0                    |  Unreviewed
Easy pickings:  0                    |      Needs documentation:  0
                                     |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------
 If you've got a queryset that has had select_related called on it (maybe
 passed to you from some other code you don't control) there's currently no
 documented way to clear out select_related.

 One possible API is .select_related(None), which mirrors how .defer()
 works.

 The combination of this and #16855 would make .select_related() and
 .defer() more consistent with each other, which would be nice.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16856>
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 this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to