Skip to content

Commit

Permalink
Merge pull request #8 from yoyicue/master
Browse files Browse the repository at this point in the history
register extension with app
  • Loading branch information
anemitz committed Aug 22, 2012
2 parents d387ca6 + de4496d commit 95a542c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flask_mongoengine/__init__.py
Expand Up @@ -46,6 +46,10 @@ def init_app(self, app):

self.connection = mongoengine.connect(**conn_settings)

app.extensions = getattr(app, 'extensions', {})
app.extensions['mongoengine'] = self
self.app = app


class BaseQuerySet(QuerySet):
"""
Expand Down

0 comments on commit 95a542c

Please sign in to comment.