From dc8e40450fb6bc34dcd6f76af123ba76eec181cc Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 13 Apr 2011 18:54:32 +0300 Subject: [PATCH 1/1] Load local_language lazily --- pokedex/db/multilang.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pokedex/db/multilang.py b/pokedex/db/multilang.py index 7e2840f..44e532c 100644 --- a/pokedex/db/multilang.py +++ b/pokedex/db/multilang.py @@ -99,8 +99,7 @@ def create_translation_table(_table_name, foreign_class, relation_name, 'foreign_id': synonym(foreign_key_name), 'local_language': relationship(language_class, primaryjoin=table.c.local_language_id == language_class.id, - innerjoin=True, - lazy='joined'), + innerjoin=True), }) # Add full-table relations to the original class -- 2.7.4