Skip to content

Commit

Permalink
Forgot to remove connection. from query_count
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleterry committed Aug 30, 2011
1 parent b3eb832 commit 13794a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_slow_log/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _response(self, request, response=None, exception=None):
'django_view': '%s.%s' % (view.__module__, view.__name__),
'memory_delta': mem_delta,
'load_delta': load_delta,
'queries': connection.query_count,
'queries': query_count,
'hostname': hostname,
'response_started': datetime.now(),
}
Expand Down

0 comments on commit 13794a8

Please sign in to comment.