django 1.7 expects middleware classes to be set
use a savepoint for doing manual transaction rollback, per Django 1.6's new transaction API