Hi,

I want to search some entrys in a database. These entrys have a name
and a discription. At first I want to find all entrys whose names
start with the search query, at second i want to find all entrys whose
name contains the search query and then I want to have the entrys with
the query in its discription.

But in the end I only need one QuerySet with no duplicate entrys. I
looked for an union and distinct function in the database api, but I
didn't found anything to solve my problem.

Do you have a solution ;-)  ?

Christian


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