mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Order Pokémon dex numbers by Pokédex ID.
This commit is contained in:
parent
577a6b44a4
commit
77bec54324
1 changed files with 1 additions and 1 deletions
|
@ -819,7 +819,7 @@ Pokemon.formes = relation(Pokemon, primaryjoin=Pokemon.id==Pokemon.forme_base_po
|
||||||
remote_side=[Pokemon.id]))
|
remote_side=[Pokemon.id]))
|
||||||
Pokemon.pokemon_color = relation(PokemonColor, backref='pokemon')
|
Pokemon.pokemon_color = relation(PokemonColor, backref='pokemon')
|
||||||
Pokemon.color = association_proxy('pokemon_color', 'name')
|
Pokemon.color = association_proxy('pokemon_color', 'name')
|
||||||
Pokemon.dex_numbers = relation(PokemonDexNumber, backref='pokemon')
|
Pokemon.dex_numbers = relation(PokemonDexNumber, order_by=PokemonDexNumber.pokedex_id.asc(), backref='pokemon')
|
||||||
Pokemon.default_form_sprite = relation(PokemonFormSprite,
|
Pokemon.default_form_sprite = relation(PokemonFormSprite,
|
||||||
primaryjoin=and_(
|
primaryjoin=and_(
|
||||||
Pokemon.id==PokemonFormSprite.pokemon_id,
|
Pokemon.id==PokemonFormSprite.pokemon_id,
|
||||||
|
|
Loading…
Reference in a new issue