if there's an incompatible foreign_keys collection specified that can also lead to this error. the Page and User classes must map the author_id and id columns normally as well, i.e. no exclude_columns or relations getting in the way.
Alex Marandon wrote: > > Hi there, > > Could someone explain me a bit what this error message means and what > could be causing it: > > sqlalchemy.exc.ArgumentError: Could not locate any equated, locally > mapped column pairs for primaryjoin condition 'pages.author_id = > users.id' on relation Page.author. For more relaxed rules on join > conditions, the relation may be marked as viewonly=True. > > The tables are created properly with an author_id field on the pages > table and of course the usual id field on the users table. > > Thanks, > Alex > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---