Fix imports for new Flask version.
This commit is contained in:
parent
6fe5085c9f
commit
17709f8f47
@ -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):
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
"""
|
||||
import dateutil.parser
|
||||
|
||||
from flask.ext.restful import reqparse
|
||||
from flask_restplus import reqparse
|
||||
|
||||
from .. import api
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user