Fix some deprecation warnings with newer flask version
This commit is contained in:
parent
a22e99bf9b
commit
36d3fb7215
12 changed files with 15 additions and 14 deletions
|
@ -14,7 +14,7 @@ def whoosh(app):
|
|||
|
||||
|
||||
def elasticsearch(app):
|
||||
from flask.ext.elastic import Elastic
|
||||
from flask_elastic import Elastic
|
||||
fields = app.config.get('ELASTICSEARCH_FIELDS')
|
||||
return ElasticSearch(Elastic(app), fields)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue