Skip to content

Commit

Permalink
fixed import statement from flask.ext.sqlalchemy to flask_sqlalchemy
Browse files Browse the repository at this point in the history
  • Loading branch information
rlam3 committed Oct 13, 2016
1 parent 6977b74 commit 04d927e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flask_whooshalchemy.py
Expand Up @@ -15,7 +15,7 @@
from __future__ import absolute_import


import flask.ext.sqlalchemy as flask_sqlalchemy
import flask_sqlalchemy as flask_sqlalchemy

import sqlalchemy

Expand Down Expand Up @@ -103,7 +103,7 @@ def whoosh_search(self, query, limit=None, fields=None, or_=False):
parameter to ``True``.
'''

if not isinstance(query, unicode):
query = unicode(query)

Expand Down Expand Up @@ -156,7 +156,7 @@ def __call__(self, query, limit=None, fields=None, or_=False):


def whoosh_index(app, model):
''' Create whoosh index for ``model``, if one does not exist. If
''' Create whoosh index for ``model``, if one does not exist. If
the index exists it is opened and cached. '''

# gets the whoosh index for this model, creating one if it does not exist.
Expand Down Expand Up @@ -213,7 +213,7 @@ def _create_index(app, model):

# change the query class of this model to our own
model.query_class = _QueryProxy

return indx


Expand Down

0 comments on commit 04d927e

Please sign in to comment.