Hi there,

I would like to chain a few different 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 set him on the right track:

http://groups.google.com/group/django-users/browse_frm/thread/3d00660409d277da?hl=en&tvc=1&q=custom+manager+chain

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