mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
magic-removal: Fixed an strange bug with postgres connections not being closed.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2611 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
df26d4bcc4
commit
cc6ab74c36
@ -28,7 +28,7 @@ DatabaseError = backend.DatabaseError
|
||||
|
||||
# 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user