diff --git a/djongo/base.py b/djongo/base.py index a7579e85..d1d97b68 100644 --- a/djongo/base.py +++ b/djongo/base.py @@ -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):