#19881: Document that get_next/previous_by_FOO uses default manager
--------------------------------------+------------------------------------
     Reporter:  jtiai                 |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Documentation         |                  Version:  1.4
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by nkryptic):

 Another possibility I discussed with jtiai, which could be included in the
 updated documentation, is to use a Proxy model with it's default manager
 set to the expected manager.  Then, if using the proxy model for the
 initial query, the instance calling `get_previous_by_birthday` would pass
 the test.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19881#comment:4>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to