X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/056c835e4b25e784d75ea37e0c7484508f0f0470..8254849e93a95be9f671f76b3f81d38296628ce5:/pokedex/db/tables.py 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)