Re: [sqlalchemy] create a relationship to the latest item (i.e. many-to-one, where the 'one' is ordered)

2014-12-05 Thread Simon King
On Fri, Dec 5, 2014 at 1:30 AM, Jonathan Vanasco jvana...@gmail.com wrote: This is a simplified example of my issue. I wrote a detailed example, but it might be too confusing. There are three classes: Entity only has one of user_id or username id user_id

[sqlalchemy] create a relationship to the latest item (i.e. many-to-one, where the 'one' is ordered)

2014-12-04 Thread Jonathan Vanasco
This is a simplified example of my issue. I wrote a detailed example, but it might be too confusing. There are three classes: Entity only has one of user_id or username id user_id username profile = relationship( EntityProfile based on user_id )