mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Order PokemonEggGroup.species by Pokémon *species* order.
This commit is contained in:
parent
4aa637caf2
commit
6e103af3e0
1 changed files with 1 additions and 1 deletions
|
@ -2064,7 +2064,7 @@ PokemonSpecies.egg_groups = relationship(EggGroup,
|
||||||
secondary=PokemonEggGroup.__table__,
|
secondary=PokemonEggGroup.__table__,
|
||||||
innerjoin=True,
|
innerjoin=True,
|
||||||
order_by=PokemonEggGroup.egg_group_id.asc(),
|
order_by=PokemonEggGroup.egg_group_id.asc(),
|
||||||
backref=backref('species', order_by=Pokemon.order.asc()))
|
backref=backref('species', order_by=PokemonSpecies.order.asc()))
|
||||||
PokemonSpecies.forms = relationship(PokemonForm,
|
PokemonSpecies.forms = relationship(PokemonForm,
|
||||||
secondary=Pokemon.__table__,
|
secondary=Pokemon.__table__,
|
||||||
primaryjoin=PokemonSpecies.id==Pokemon.species_id,
|
primaryjoin=PokemonSpecies.id==Pokemon.species_id,
|
||||||
|
|
Loading…
Reference in a new issue