Changed the way the connection is cleaned, django 1.6 is using self._dirty, django 1.7 is not