mirror of
https://github.com/kennethreitz/django-postgrespool.git
synced 2026-06-05 06:46:18 +00:00
@@ -95,3 +95,7 @@ class DatabaseWrapper(Psycopg2DatabaseWrapper):
|
||||
else:
|
||||
pool.dispose()
|
||||
del db_pool.pools[key]
|
||||
|
||||
def is_usable(self):
|
||||
# https://github.com/kennethreitz/django-postgrespool/issues/24
|
||||
return not self.connection.closed
|
||||
|
||||
Reference in New Issue
Block a user