Fix circular import.
This commit is contained in:
parent
0bdc9d5ef2
commit
16e5a6e91e
@ -18,7 +18,6 @@ from sqlalchemy import func, case, desc
|
||||
|
||||
from accountant import db
|
||||
|
||||
from .accounts import Account
|
||||
|
||||
|
||||
class Operation(db.Model):
|
||||
@ -31,7 +30,7 @@ class Operation(db.Model):
|
||||
scheduled_operation_id = db.Column(db.Integer,
|
||||
db.ForeignKey('scheduled_operation.id'))
|
||||
|
||||
account = db.relationship(Account, backref=db.backref('operation',
|
||||
account = db.relationship('Account', backref=db.backref('operation',
|
||||
lazy="dynamic"))
|
||||
|
||||
category = db.Column(db.String(100), nullable=True)
|
||||
|
Loading…
Reference in New Issue
Block a user