Quantcast
Channel: BlogoSfera » Primary Key
Viewing all articles
Browse latest Browse all 10

Updating Model Based on Primary Key

$
0
0

From what I understand you can do a query and update with: sess.query(User).filter(User.age == 25).\ update({User.age: User.age - 10}, synchronize_session=False) Is there any way to avoid having to construct a query and to just update the model that has the corresponding primary key of the dictionary provided? For example: Say I have a dict with […]

The post Updating Model Based on Primary Key appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 10

Trending Articles