On 12 avr, 02:26, "sh...@bogomip.com" <spence...@gmail.com> 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 django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to