I have a complicated query which should return the subset of a table
whose objects match one of several conditions.

What's the easiest way of doing this, given that I can't just do a SQL
statement, because some of the conditions require me to feed the
object's values into a function to evaluate it.

I've had a few ideas:

a) Pulling back the entire table, and deleting from the query set
those objects which don't match.

Is this possible? I get the feeling that using delete() would delete
the entry from the db, which i don't want to do.

b) Doing multiple querysets and making a union out of the results.

I can't find any documentation to show how to union 2 querysets - is
it possible?

c) Writing a custom Manager.

Any pointers welcome
Rachel

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