From: Eevee Date: Wed, 6 Apr 2011 03:48:10 +0000 (-0700) Subject: Always joinedload the local_language for a full language map. X-Git-Tag: veekun-promotions/2011041101~9 X-Git-Url: http://git.veekun.com/zzz-pokedex.git/commitdiff_plain/2c94dcb72535499c43958ceb9d1ca6af25740995?ds=inline;hp=fe7fe27d1e5df6918fb9cf11d64686f85948c564 Always joinedload the local_language for a full language map. --- diff --git a/pokedex/db/multilang.py b/pokedex/db/multilang.py index 4adb68d..dcbe489 100644 --- a/pokedex/db/multilang.py +++ b/pokedex/db/multilang.py @@ -99,7 +99,8 @@ 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), + innerjoin=True, + lazy='joined'), }) # Add full-table relations to the original class