2
There is no such option in Django (though implementing a similar mechanism yourself is rather easy).
Do note, however, that what GORM calls “Optimistic Locking” has little to do with database locking (that’s the point of it being optimistic).
You’ll probably want to have a look at the documentation page on transactions for more DB internals documentation.
Source:stackexchange.com