#3871: Use custom managers in reverse relations
---------------------------------------------------+------------------------
          Reporter:  EspenG                        |         Owner:  nobody
            Status:  new                           |     Milestone:        
         Component:  Database layer (models, ORM)  |       Version:  SVN   
        Resolution:                                |      Keywords:        
             Stage:  Accepted                      |     Has_patch:  0     
        Needs_docs:  1                             |   Needs_tests:  1     
Needs_better_patch:  1                             |  
---------------------------------------------------+------------------------
Changes (by russellm):

  * stage:  Design decision needed => Accepted

Comment:

 Accepted on principle, but needs a cleaner API. EspenG's proposal is
 close; however, rather than seeing managers acquire an attribute for each
 of the model's manager, it would be better for a manager to have a method
 that allows it to return a different manager on the model - e.g.,
 Author.article_set.manager('published') would give you the 'published'
 manager for Articles.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3871#comment:10>
Django <http://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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to