mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Always joinedload the local_language for a full language map.
This commit is contained in:
parent
629d99885c
commit
ef29dd667c
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue