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:
a4ebddc
)
Pokemon.types should order by slot. #220
author
Eevee
<git@veekun.com>
Sun, 9 May 2010 05:39:06 +0000
(22:39 -0700)
committer
Eevee
<git@veekun.com>
Mon, 10 May 2010 04:47:07 +0000
(21:47 -0700)
pokedex/db/tables.py
patch
|
blob
|
history
diff --git
a/pokedex/db/tables.py
b/pokedex/db/tables.py
index
8ae80d8
..
b9a5fea
100644
(file)
--- a/
pokedex/db/tables.py
+++ b/
pokedex/db/tables.py
@@
-785,7
+785,7
@@
Pokemon.items = relation(PokemonItem, backref='pokemon')
Pokemon.generation = relation(Generation, backref='pokemon')
Pokemon.shape = relation(PokemonShape, backref='pokemon')
Pokemon.stats = relation(PokemonStat, backref='pokemon')
-Pokemon.types = relation(Type, secondary=PokemonType.__table__)
+Pokemon.types = relation(Type, secondary=PokemonType.__table__
, order_by=PokemonType.slot.asc()
)
PokemonDexNumber.pokedex = relation(Pokedex)