Skip to content

Commit d3a45f8

Browse files
committed
Merge pull request #117 from mtsgrd/master
Fix bug to allow multiple instances of extension.
2 parents 20f5daf + b7b1716 commit d3a45f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask_mongoengine/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def init_app(self, app, config=None):
9494

9595
# Store objects in application instance so that multiple apps do
9696
# not end up accessing the same objects.
97-
app.extensions['mongoengine'] = {self: {'app': app,
98-
'conn': connection}}
97+
app.extensions['mongoengine'][self] = {'app': app,
98+
'conn': connection}
9999

100100
@property
101101
def connection(self):

0 commit comments

Comments
 (0)