devfeng
devfeng

Reputation: 291

Does Django transaction management works on update()?

save() generates SQL commands as well as emits signals, while update() only generates raw SQL. I feel the transaction management would also work on update(). Is it true?

Upvotes: 0

Views: 74

Answers (1)

Alasdair
Alasdair

Reputation: 308769

Yes, the transaction management will work for update statements as it does for save.

Upvotes: 1

Related Questions