Alex Rivera | Logout

How is transaction managed in Django's admin commands?

Asked 2011-07-29T22:51:56.800
9

I just wonder how is transaction managed in django's admin commands. Commit on save? Commit on success? I can't find related info from official documents.

Edit
Report

1 Answer

-2

I'm not too sure, but admin forms don't reach to the commit point unless they meet clean() requirements. After that I guess everything will be committed. This behavior should be sufficient for the default forms in admin. However, for more complex forms, you can create your custom admin form and I'm pretty sure you can define whether or not you want to commit on success or on save.

answered 2011-07-30T00:28:34.650

Your Answer