Skip to content

Commit ea1ff75

Browse files
author
Boldyrev Yaroslav
committed
Fix broken flask extension interface.
See http://flask.pocoo.org/docs/1.0/extensiondev/ The __init__ method takes an optional app object and, if supplied, will call init_app.
1 parent b30b573 commit ea1ff75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_pymongo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class PyMongo(object):
108108
109109
"""
110110

111-
def __init__(self, app, uri=None, *args, **kwargs):
111+
def __init__(self, app=None, uri=None, *args, **kwargs):
112112
self.cx = None
113113
self.db = None
114114

0 commit comments

Comments
 (0)