mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Load local_language lazily
This commit is contained in:
parent
8e1bbe0004
commit
27d33556d4
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue