I think I found the problem; for the record, I wanted text__exact, not text__equals.
On Wed, Aug 25, 2010 at 1:27 PM, Christos Jonathan Hayward < [email protected]> wrote: > I am trying to get a many-to-many tagging setup working, and I am getting > an error which may or may not be an issue with many-to-many specifically. An > Entity has a many-to-many field to Tag models; a Tag model only has one > (declared) field, text, a TextField. My code: > > tag = directory.models.Tag.objects.filter(text__equals = name)[0] > > > is getting: > > Exception Value: Join on field 'text' not permitted. Did you misspell > 'equals' for the lookup type? > > > Is text a reserved word here, or do I need to prepend the model name? I'm > trying to get the first Tag, if any exists, where the text field equals a > name I am testing against. > > -- > [image: Christos Jonathan Hayward] <http://JonathansCorner.com> > Christos Jonathan Hayward, an Orthodox Christian author. > > Author Bio <http://JonathansCorner.com/author/> • > Books<http://CJSHayward.com/> > • *Email <[email protected]>* • > Facebook<http://www.facebook.com/christos.jonathan.hayward> > • LinkedIn <http://www.linkedin.com/in/jonathanhayward> • > Twitter<http://twitter.com/JonathansCorner> > • *Web <http://JonathansCorner.com/>* • What's > New?<http://JonathansCorner.com/> > I invite you to visit my "theology, literature, and other creative works" > site. > > -- [image: Christos Jonathan Hayward] <http://JonathansCorner.com> Christos Jonathan Hayward, an Orthodox Christian author. Author Bio <http://JonathansCorner.com/author/> • Books<http://CJSHayward.com/> • *Email <[email protected]>* • Facebook<http://www.facebook.com/christos.jonathan.hayward> • LinkedIn <http://www.linkedin.com/in/jonathanhayward> • Twitter<http://twitter.com/JonathansCorner> • *Web <http://JonathansCorner.com/>* • What's New?<http://JonathansCorner.com/> I invite you to visit my "theology, literature, and other creative works" site. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

