Order PokemonEggGroup.species by Pokémon *species* order.

This commit is contained in:
Lynn "Zhorken" Vaughan 2012-06-07 02:07:29 -04:00
parent 4aa637caf2
commit 6e103af3e0

View file

@ -2064,7 +2064,7 @@ PokemonSpecies.egg_groups = relationship(EggGroup,
secondary=PokemonEggGroup.__table__,
innerjoin=True,
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,
secondary=Pokemon.__table__,
primaryjoin=PokemonSpecies.id==Pokemon.species_id,