Hi there,

I would like to chain a few custom filter methods like so:

>>> Model.custom_manager.custom_filter1().custom_filter2()

The docs tell us how to override a Manager's base QuerySet by
overriding the Manager.get_query_set() method:

* 
http://docs.djangoproject.com/en/dev/topics/db/managers/#modifying-initial-manager-querysets

But it's not clear how to use that approach to chain custom filters.

When another user asked the same question a few months ago, Malcolm
Tredinnick sent him on the right track:

*
http://groups.google.com/group/django-users/browse_thread/thread/3d00660409d277da/88effc5365f2484b?hl=en&lnk=gst&q=custom+manager+chain#88effc5365f2484b

But I'm still hazy about how to write the code. Can anyone provide an
example?

Thanks!
Leif


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to