Open aditya051293 opened 2 years ago
@aditya051293 The "version" objects don't keep foreign keys and so they don't have relationships.
All the values you see like version_class(Book).author
are just properties making another query internally
All the values you see like Book.author
are actual InstrumentedAttribute
and RelationshipProperty
As .key
is an attribute only available in RelationshipProperty
or InstrumentedAttribute
- it won't work with the property that sqlalchemy-continuum exposes.
My Model setup is something like this.
I am getting something like this.