On Fri, May 29, 2009 at 9:56 AM, Peter Bengtsson <pete...@gmail.com> wrote:

>
> Basically, I was able to override MyModel.objects and write my own
> custom filter() and exclude() which makes it possible to filter and
> exclude on non-DB fields.
> But this qs.filter() is a the queryset that MyModel.objects
> "wraps" (not overrides) so it does not work.
>
> For now I've given up :(
>

Sounds like you want custom filter specs:

http://code.djangoproject.com/ticket/5833

This was on the maybe list for 1.1 but didn't get completed in time.  There
is a patch on that ticket -- I have no idea if it still applies or what
state it it is in, but if you are interested in pursuing this, helping out
with that ticket would be a good way to proceed.

Karen

--~--~---------~--~----~------------~-------~--~----~
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