Fix db import in views.

This commit is contained in:
Alexis Lahouze 2017-05-13 10:41:48 +02:00
parent d9da95aaa0
commit 64b9935f99
3 changed files with 3 additions and 4 deletions

View File

@ -17,8 +17,8 @@
import dateutil.parser import dateutil.parser
from flask_restplus import Namespace, Resource, fields, marshal_with_field 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.accounts import Account
from ..models.operations import Operation from ..models.operations import Operation

View File

@ -17,8 +17,8 @@
import dateutil.parser import dateutil.parser
from flask_restplus import Namespace, Resource, fields, marshal_with_field 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.accounts import Account
from ..models.operations import Operation from ..models.operations import Operation

View File

@ -18,8 +18,7 @@ from flask_restplus import Namespace, Resource, fields, marshal_with_field
from sqlalchemy import true from sqlalchemy import true
from accountant import db from ..models import db
from ..models.accounts import Account from ..models.accounts import Account
from ..models.operations import Operation from ..models.operations import Operation
from ..models.scheduled_operations import ScheduledOperation from ..models.scheduled_operations import ScheduledOperation