Em Terça 16 Maio 2006 19:18, Ed Singleton escreveu:
> I want to join a table with itself in the model definition.
>
> Something like:
>
> class Page(SQLObject):
> parent_page = ForeignKey('Page')
> child_pages = MultipleJoin('Page')
>
> but when I do, and I try to pull out the child pages I get the error:
>
> OperationalError: (1054, "Unknown column 'page_id' in 'where clause'")
>
> Any clues?
Specify the "joinColumn" as "id".
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---