Thanks.

On Thu, Aug 26, 2010 at 9:08 AM, Alex Robbins <alexander.j.robb...@gmail.com
> wrote:

> Jonathan,
>
> Pretty much any time you use <fieldname>__exact='text', you could use
> <fieldname>='text' instead. I think the orm treats those two cases the
> same. (It adds __exact if there isn't another lookup specified.
>
> Alex
>
> On Aug 25, 1:37 pm, Christos Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com> wrote:
> > 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 <
> >
> >
> >
> > christos.jonathan.hayw...@gmail.com> 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 <christos.jonathan.hayw...@gmail.com>* • 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 <christos.jonathan.hayw...@gmail.com>* •
> > 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 django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
[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 <christos.jonathan.hayw...@gmail.com>* •
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 django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to