made support for django transactions 1.5, 1.6, changed settings_test