aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn/models.py')
-rw-r--r--python/Dawn/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/Dawn/models.py b/python/Dawn/models.py
index dd670b96..8ec88c09 100644
--- a/python/Dawn/models.py
+++ b/python/Dawn/models.py
@@ -355,7 +355,9 @@ class CDSDeal(db.Model):
)
isda_definition = db.Column(ISDA)
counterparty = db.relationship(Counterparties, foreign_keys=[cp_code])
- fcm_account = db.relationship(Accounts, foreign_keys=[account_code])
+ fcm_account = db.relationship(
+ Accounts, foreign_keys=[account_code], load_on_pending=True
+ )
ref = db.Column(db.Float)
__table_args__ = (
db.CheckConstraint(