Skip to content

Commit

Permalink
Merge pull request #7 from certego/develop
Browse files Browse the repository at this point in the history
1.3.12
  • Loading branch information
0ssigeno committed Aug 29, 2024
2 parents f80eac8 + 40d24c7 commit bc6220a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions djongo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ def create_cursor(self, name=None):
"""
Returns an active connection cursor to the database.
"""
if not self.connection:
self.connection = self.get_new_connection(self.get_connection_params())
return Cursor(self.client_connection, self.connection, self.djongo_connection)

def close_if_unusable_or_obsolete(self):
Expand Down

0 comments on commit bc6220a

Please sign in to comment.