Use transaction.commit_on_success to be compatible with Django 1.5

Signed-off-by: Michal Čihař <michal@cihar.com>
Merge branch 'master' into bootstrap