python - sqlalchemy relationship persistancy -
new sqlalchemy...
i have relashionship in class asset such that:
valids = sqlalchemy.orm.relationship("myclass", primaryjoin="and_(asset.id==myclass.asset_id, myclass.valid==true, myclass.approved==true)", viewonly=true)
where valid , approved columns.. want persistant, i.e. whenever either valid or approved columns have been updated, want valids updated expiry, possible?
thanks!
Comments
Post a Comment