projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2880d4
)
Load local_language lazily
author
Petr Viktorin
<encukou@gmail.com>
Wed, 13 Apr 2011 15:54:32 +0000
(18:54 +0300)
committer
Petr Viktorin
<encukou@gmail.com>
Wed, 13 Apr 2011 19:46:18 +0000
(22:46 +0300)
pokedex/db/multilang.py
patch
|
blob
|
history
diff --git
a/pokedex/db/multilang.py
b/pokedex/db/multilang.py
index
7e2840f
..
44e532c
100644
(file)
--- 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