On 12 avr, 02:26, "[email protected]" <[email protected]> wrote: > Strange, I must have replied to the author only. > > It seems as though I was a goof and after looking through the source I > discovered how the model manager handles functions for the queryset. > > xyz.objects.get_query_set()._filter_or_exclude(...) does the trick.
FWIW, I'd personnaly wrap this call in a function of a custom manager - or monkeypatch the base Manager with it if you need it on other apps managers. Having one single point of transformation is a good thing when relying on some implementation detail that may change in the future. -- You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en.

