Thanks for your response.

Do you consider using `backref` only on one of the class bad practice?

I'm curious because automatically creating descriptors seems possible to me, 
and I'm wondering when it happens.

As documentation states so:

Remember, when the backref keyword is used on a single relationship, it’s 
exactly the same as if the above two relationships were created individually 
using back_populates on each.

ref: http://docs.sqlalchemy.org/en/latest/orm/backref.html

There is also a half-a-year-old stackoverflow question about it:

http://stackoverflow.com/questions/32617371/how-to-force-creation-of-backref-instrumentedattributes-using-sqlalchemy

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to