From 16e5a6e91e6824fbe699308739bd40f9427c2784 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 13 Jun 2015 01:19:55 +0200 Subject: [PATCH] Fix circular import. --- accountant/api/models/operations.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/accountant/api/models/operations.py b/accountant/api/models/operations.py index 0fe296b..143b2a2 100644 --- a/accountant/api/models/operations.py +++ b/accountant/api/models/operations.py @@ -18,7 +18,6 @@ from sqlalchemy import func, case, desc from accountant import db -from .accounts import Account class Operation(db.Model): @@ -31,8 +30,8 @@ class Operation(db.Model): scheduled_operation_id = db.Column(db.Integer, db.ForeignKey('scheduled_operation.id')) - account = db.relationship(Account, backref=db.backref('operation', - lazy="dynamic")) + account = db.relationship('Account', backref=db.backref('operation', + lazy="dynamic")) category = db.Column(db.String(100), nullable=True)