def __enter__(self): if settings.DEBUG: self.t_initial = time.time() self.q_initial = len(self.connection.queries)