On Mon, May 16, 2011 at 08:48:45PM +0200, Marc Aymerich wrote:
> Hi,
> my question is, How can I define a custom manager that can handle Q
> objects?

The important thing to realize here is that the default managers proxy
all get, filter and other QuerySet calls to a QuerySet that they
store, usually one without any filters (or in case of RelatedManagers,
containing a filter limiting to the related object).

As such, the Manager class does not in any way have to handle Q
objects, they are ony passed upstream in the process.

Michal

Attachment: signature.asc
Description: Digital signature

Reply via email to