Fix imports for new Flask version.

This commit is contained in:
Alexis Lahouze 2016-06-16 23:21:57 +02:00
parent 6fe5085c9f
commit 17709f8f47
8 changed files with 8 additions and 8 deletions

View File

@ -14,7 +14,7 @@
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
from flask.ext.restplus import marshal, fields
from flask_restplus import marshal, fields
class Object(fields.Raw):

View File

@ -21,7 +21,7 @@ from itsdangerous import (URLSafeTimedSerializer as Serializer,
from flask import current_app as app
from flask.ext.login import UserMixin
from flask_login import UserMixin
from accountant import db

View File

@ -14,7 +14,7 @@
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
from flask.ext.restplus import Resource, fields, marshal_with_field
from flask_restplus import Resource, fields, marshal_with_field
from accountant import db

View File

@ -14,7 +14,7 @@
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
from flask.ext.restplus import fields
from flask_restplus import fields
from .. import api

View File

@ -14,7 +14,7 @@
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
from flask.ext.restplus import Resource, fields, marshal_with_field
from flask_restplus import Resource, fields, marshal_with_field
from accountant import db

View File

@ -16,7 +16,7 @@
"""
import dateutil.parser
from flask.ext.restful import reqparse
from flask_restplus import reqparse
from .. import api

View File

@ -14,7 +14,7 @@
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
from flask.ext.restplus import Resource, fields, marshal_with_field
from flask_restplus import Resource, fields, marshal_with_field
from sqlalchemy import true

View File

@ -20,7 +20,7 @@ import arrow
from functools import wraps
from flask import request, g
from flask.ext.restplus import Resource, marshal_with_field
from flask_restplus import Resource, marshal_with_field
from accountant import app