Re: Filter objects spanning two relations

2006-07-29 Thread Russell Keith-Magee
On 7/30/06, Maciej Bliziński <[EMAIL PROTECTED]> wrote: I'd like to find all the documents that are related to a specific newtag. To reach the new tags, I need to pass old tags first, do I'd expectto use something like this:>>> Document.objects.filter (oldtags__newtags__content = 'popcorn')But it d

Filter objects spanning two relations

2006-07-29 Thread Maciej Bliziński
Hello all, I'll illustrate my problem with a small example. Let's consider a data model: -- from django.db import models class OldTag(models.Model): content = models.TextField() class NewTag(models.Model): content = models.Tex