Re: [sqlalchemy] relationship without using a column value (using table name)?

2020-03-16 Thread Mark Aquino
I guess I could do that: I am using a joined table inheritance schema for most of the classes in my data model (and that base table does have an entity_type_id) but was trying to link a few "entity_type"s to some of the classes that didn't inherit from the base. The difference in the Django mod

Re: [sqlalchemy] association_proxy

2020-03-16 Thread Jonathan Vanasco
On Monday, March 16, 2020 at 12:31:09 PM UTC-4, Mike Bayer wrote: > > I sometimes get a "moderators spam report" for SQLAlchemy and then I know > I have to go to the admin interface on the website. I likely approve them > really quick before you see them. as far as originals missing i dont

Re: [sqlalchemy] relationship without using a column value (using table name)?

2020-03-16 Thread Mike Bayer
On Mon, Mar 16, 2020, at 1:23 PM, Mark Aquino wrote: > Unfortunately none of those recipes work for what I'm trying to accomplish, > and the mapper just complains that there is no "unambiguous" foreign key > column to map the two classes. > > Normal referential integrity rules would dictate th

Re: [sqlalchemy] relationship without using a column value (using table name)?

2020-03-16 Thread Mark Aquino
Unfortunately none of those recipes work for what I'm trying to accomplish, and the mapper just complains that there is no "unambiguous" foreign key column to map the two classes. Normal referential integrity rules would dictate that I create a column on the related class that referred to the e

Re: [sqlalchemy] association_proxy

2020-03-16 Thread Mike Bayer
I sometimes get a "moderators spam report" for SQLAlchemy and then I know I have to go to the admin interface on the website. I likely approve them really quick before you see them. as far as originals missing i dont know where to go for that. On Mon, Mar 16, 2020, at 12:13 PM, Jonathan Vanasc

Re: [sqlalchemy] association_proxy

2020-03-16 Thread Jonathan Vanasco
Mike- where do messages like these come from? The approval queue? The originals are often missing. I looked in the admin and didn't see them pending either. -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide