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

Popular posts from this blog

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -

javascript - jQuery: Add class depending on URL in the best way -