From 71a6e529a593aed38d5a7898b50df5cdbaefc004 Mon Sep 17 00:00:00 2001 From: Eevee Date: Sat, 8 May 2010 22:39:06 -0700 Subject: [PATCH] Pokemon.types should order by slot. #220 --- pokedex/db/tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 8ae80d8..b9a5fea 100644 --- 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) -- 2.7.4