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 accountant import db
|
||||||
|
|
||||||
from .accounts import Account
|
|
||||||
|
|
||||||
|
|
||||||
class Operation(db.Model):
|
class Operation(db.Model):
|
||||||
@ -31,8 +30,8 @@ class Operation(db.Model):
|
|||||||
scheduled_operation_id = db.Column(db.Integer,
|
scheduled_operation_id = db.Column(db.Integer,
|
||||||
db.ForeignKey('scheduled_operation.id'))
|
db.ForeignKey('scheduled_operation.id'))
|
||||||
|
|
||||||
account = db.relationship(Account, backref=db.backref('operation',
|
account = db.relationship('Account', backref=db.backref('operation',
|
||||||
lazy="dynamic"))
|
lazy="dynamic"))
|
||||||
|
|
||||||
category = db.Column(db.String(100), nullable=True)
|
category = db.Column(db.String(100), nullable=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user