diff --git a/accountant/views/accounts.py b/accountant/views/accounts.py index f3f4459..3a8211e 100644 --- a/accountant/views/accounts.py +++ b/accountant/views/accounts.py @@ -17,8 +17,8 @@ import dateutil.parser from flask_restplus import Namespace, Resource, fields, marshal_with_field -from accountant import db +from ..models import db from ..models.accounts import Account from ..models.operations import Operation diff --git a/accountant/views/operations.py b/accountant/views/operations.py index 7052f88..cfa4820 100644 --- a/accountant/views/operations.py +++ b/accountant/views/operations.py @@ -17,8 +17,8 @@ import dateutil.parser from flask_restplus import Namespace, Resource, fields, marshal_with_field -from accountant import db +from ..models import db from ..models.accounts import Account from ..models.operations import Operation diff --git a/accountant/views/scheduled_operations.py b/accountant/views/scheduled_operations.py index 0b2fafd..0eb83b9 100644 --- a/accountant/views/scheduled_operations.py +++ b/accountant/views/scheduled_operations.py @@ -18,8 +18,7 @@ from flask_restplus import Namespace, Resource, fields, marshal_with_field from sqlalchemy import true -from accountant import db - +from ..models import db from ..models.accounts import Account from ..models.operations import Operation from ..models.scheduled_operations import ScheduledOperation