Browse files

magic-removal: Fixed an strange bug with postgres connections not bei…

…ng closed.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2611 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent df26d4b commit cc6ab74c36fed067c0b28bd81c9db3e0979d2383 @spookylukey spookylukey committed Apr 5, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/__init__.py
View
2 django/db/__init__.py
@@ -28,7 +28,7 @@
# Register an event that closes the database connection
# when a Django request is finished.
-dispatcher.connect(lambda: connection.close(), signal=signals.request_finished)
+dispatcher.connect(connection.close, signal=signals.request_finished)
# Register an event that resets connection.queries
# when a Django request is started.

0 comments on commit cc6ab74

Please sign in to comment.