Re: [sqlalchemy] Properly definition of Many To One/One to Many without FK

2016-09-06 Thread Mike Bayer
On 09/06/2016 11:12 AM, TomS. wrote: Hi, In my model I am not allowed to use FK. I've been trying to figure out how one to many/many to one relationship should be properly defined or in which class to be sure that it works as expected. I've recently used very similar example - here it is: cla

[sqlalchemy] Properly definition of Many To One/One to Many without FK

2016-09-06 Thread TomS.
Hi, In my model I am not allowed to use FK. I've been trying to figure out how one to many/many to one relationship should be properly defined or in which class to be sure that it works as expected. I've recently used very similar example - here it is: class DepTest(db.Model): __tablena