From cb8bf24bad908b6faa0d7c68819e42f18fc17071 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 5 Jun 2015 18:07:21 +0200 Subject: [PATCH] Fix lazy. --- api/model/entries.py | 4 ++-- api/model/operations.py | 2 +- api/model/scheduled_operations.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/model/entries.py b/api/model/entries.py index e6f81a2..225fb39 100644 --- a/api/model/entries.py +++ b/api/model/entries.py @@ -30,8 +30,8 @@ class Entry(db.Model): account_id = db.Column(db.Integer, db.ForeignKey('account.id')) scheduled_operation_id = db.Column(db.Integer, db.ForeignKey('scheduled_operation.id')) - account = db.relationship(Account, backref = db.backref('entry', lazy="Dynamic")) - scheduled_operation = db.relationship(ScheduledOperation, backref = db.backref('entry', lazy="Dynamic")) + account = db.relationship(Account, backref = db.backref('entry', lazy="dynamic")) + scheduled_operation = db.relationship(ScheduledOperation, backref = db.backref('entry', lazy="dynamic")) category = db.Column(db.String(100), nullable = True) diff --git a/api/model/operations.py b/api/model/operations.py index a9f6f1a..42a67aa 100644 --- a/api/model/operations.py +++ b/api/model/operations.py @@ -32,7 +32,7 @@ class Operation(db.Model): account_id = db.Column(db.Integer, db.ForeignKey('account.id')) 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) diff --git a/api/model/scheduled_operations.py b/api/model/scheduled_operations.py index e1bafa1..098ed62 100644 --- a/api/model/scheduled_operations.py +++ b/api/model/scheduled_operations.py @@ -14,7 +14,7 @@ class ScheduledOperation(db.Model): value = db.Column(db.Numeric(15, 2), nullable = False) account_id = db.Column(db.Integer, db.ForeignKey('account.id')) - account = db.relationship(Account, backref = db.backref('scheduled_operation', lazy="Dynamic")) + account = db.relationship(Account, backref = db.backref('scheduled_operation', lazy="dynamic")) category = db.Column(db.String(100), nullable = True)