On Fri, Jan 6, 2012 at 12:02 AM, Daniel Sokolowski <[email protected]> wrote: > Forgive me if I am missing something --- I use custom managers extensively > and do not see what your code can do that the django custom managers can't ? > Can you provide an example please ?
Zachary provided a complete example in his original post. The crux of it -- at present, in order to support the following two expressions: MyModel.objects.foo() MyModel.objects.filter(...).foo() you currently have to provide 2 definitions of foo() -- one on a custom Manager, and one on a custom QuerySet that is generated by the custom manager. Zachary's proposal is to provide a decorator so that you only have to provide the Manager definition. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en.
