On Mon, Nov 11, 2013 at 09:57:53AM +0100, Daniel Fetchinson <fet...@go...> wrote:
> On 11/11/13, Simon Cross <hod...@gm...> wrote:
> > I assume you have a reason not to use:
> >
> > class x(SQLObject):
> > ys = ForeignKey( 'y' )
>
> Well, in the real life example I have the two objects 'x' and 'y' are
> kinda like 'article' and 'tag'. A tag can be attached to several
> articles and an article can have several tags attached to it.
>
> So I guess I have to use RelatedJoin on both.
A typical task for many-to-many relation.
Oleg.
--
Oleg Broytman http://phdru.name/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|