mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Order Pokemon.stats by stat id. #366
This commit is contained in:
parent
5922a0d3e9
commit
ddca78c34d
1 changed files with 1 additions and 1 deletions
|
@ -893,7 +893,7 @@ Pokemon.habitat = association_proxy('pokemon_habitat', 'name')
|
||||||
Pokemon.items = relation(PokemonItem, backref='pokemon')
|
Pokemon.items = relation(PokemonItem, backref='pokemon')
|
||||||
Pokemon.generation = relation(Generation, backref='pokemon')
|
Pokemon.generation = relation(Generation, backref='pokemon')
|
||||||
Pokemon.shape = relation(PokemonShape, backref='pokemon')
|
Pokemon.shape = relation(PokemonShape, backref='pokemon')
|
||||||
Pokemon.stats = relation(PokemonStat, backref='pokemon')
|
Pokemon.stats = relation(PokemonStat, backref='pokemon', order_by=PokemonStat.stat_id.asc())
|
||||||
Pokemon.types = relation(Type, secondary=PokemonType.__table__, order_by=PokemonType.slot.asc())
|
Pokemon.types = relation(Type, secondary=PokemonType.__table__, order_by=PokemonType.slot.asc())
|
||||||
|
|
||||||
PokemonDexNumber.pokedex = relation(Pokedex)
|
PokemonDexNumber.pokedex = relation(Pokedex)
|
||||||
|
|
Loading…
Reference in a new issue