X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/56d77dd66179f484e0a7d3a6614a155c14f36e65..00daaa54a8ce4998cb473ab00d57827faadc2797:/pokedex/db/tables.py diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 7b749cc..1dacc80 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -819,7 +819,7 @@ Pokemon.formes = relation(Pokemon, primaryjoin=Pokemon.id==Pokemon.forme_base_po remote_side=[Pokemon.id])) Pokemon.pokemon_color = relation(PokemonColor, backref='pokemon') 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, primaryjoin=and_( Pokemon.id==PokemonFormSprite.pokemon_id,