Don't assume that connection.autocommit is a callable
|Leo Soto M.
|Patch needs improvement:
source:django/trunk/django/test/utils.py assumes that
connection.autocommit is going to be a callable. This is not true for some backends where it is a property (basically all JDBC based backends, also PyODBC and cx_Oracle).
The attached patch fixes this by taking into account the case where
is a property.