def rollback(self):
        self.validate_thread_sharing()
        self._rollback()
        self.set_clean()
This function does the rollback itself and resets the dirty flag.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/db/backends/__init__.py/BaseDatabaseWrapper.rollback