projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6d4ad91
)
Eagerload PokemonName.language.
author
Eevee
<git@veekun.com>
Tue, 7 Dec 2010 06:58:25 +0000
(22:58 -0800)
committer
Eevee
<git@veekun.com>
Sun, 12 Dec 2010 05:43:46 +0000
(21:43 -0800)
pokedex/db/tables.py
patch
|
blob
|
history
diff --git
a/pokedex/db/tables.py
b/pokedex/db/tables.py
index
c4759e0
..
1f6d3e1
100644
(file)
--- a/
pokedex/db/tables.py
+++ b/
pokedex/db/tables.py
@@
-1579,7
+1579,7
@@
PokemonMove.machine = relation(Machine, backref='pokemon_moves',
PokemonMove.move = relation(Move, backref='pokemon_moves')
PokemonMove.method = relation(PokemonMoveMethod)
-PokemonName.language = relation(Language)
+PokemonName.language = relation(Language
, lazy='joined'
)
PokemonStat.stat = relation(Stat)