Fix circular import.

This commit is contained in:
Alexis Lahouze 2015-06-13 01:19:55 +02:00
parent 0bdc9d5ef2
commit 16e5a6e91e

View File

@ -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)