Replaced deprecated functions

Replaced "commit_on_success" with "atomic" to avoid warning messages when updating to Django 1.7