Revert "Removed a useless commit_unless_managed."

This reverts commit 8ed1ba85d78e84a6215101b5d45e6fc5d8f60867.

It was not useless after all :)
Avoid calling the no-op `commit_unless_managed` method on Django >= 1.6.