Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions djongo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ def get_new_connection(self, connection_params):
# To prevent leaving unclosed connections behind,
# client_conn must be closed before a new connection
# is created.
if self.client_connection is not None:
self.client_connection.close()
logger.debug('Existing MongoClient connection closed')

self.client_connection = Database.connect(db=name, **connection_params)
logger.debug('New Database connection')
Expand Down
2 changes: 1 addition & 1 deletion djongo/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def connect(db, **kwargs):
logger.debug('New MongoClient connection')
clients[db] = MongoClient(**kwargs, connect=False)
clients[db] = MongoClient(**kwargs, connect=True)
return clients[db]


Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS CHANGED ON - 19 Aug 2022

sqlparse==0.4.4
sqlparse~=0.5.0
pymongo>=3.6.0,<4.0
django>=3.2
# requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def find_version(*file_paths):


install_requires = [
'sqlparse==0.4.4',
'sqlparse~=0.5.0',
'pymongo>=3.6.0',
'django>=3.2',
]
Expand Down