On 18/05/2006, at 5:56 AM, [EMAIL PROTECTED] wrote:
> > Hi list, > > I have a search functionality on my page, which ideally allows people > to write a list of tags, and retrieve the entries that has those > associated. Maybe I'm overlooking the obvious here--I hope I am--but > this has become increasingly difficult to implement. It's not as > simple > as writing WHERE tag = 'foo' OR tag = 'bar'. That assumes that both > values are met in a single row/join. > Hi Jnoehr. I've done something similar in zyons.com -- http://svn.zilbo.com/svn/ django/magic-removal/common/tag/models.py it implements what you are trying to do .. I call it a tag union/ intersection. it's a work in progress.. but it will give you a tip. > I'd like some feedback on how this could be implemented, preferably in > native Django models. It's been the source of my frustration for days > now, and I sincerely hope this is not as heavy/daunting as it seems. > > Thanks in advance. > > PS: I heard there were some discussions on this list with regards to > the subject, but I've been unable to dig these up. > > -- > Jesper Noehr <[EMAIL PROTECTED]> > Developer, Opera Software ASA > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---