From 64b9935f9990445dfacb3ae2db0036711f84f858 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 13 May 2017 10:41:48 +0200 Subject: [PATCH] Fix db import in views. --- accountant/views/accounts.py | 2 +- accountant/views/operations.py | 2 +- accountant/views/scheduled_operations.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) 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