mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Pokemon.evolution_* => Pokemon.*_pokemon
This commit is contained in:
parent
672caf7aa9
commit
b91c813966
1 changed files with 2 additions and 4 deletions
|
@ -794,13 +794,11 @@ Pokemon.egg_groups = relation(EggGroup, secondary=PokemonEggGroup.__table__,
|
|||
order_by=PokemonEggGroup.egg_group_id,
|
||||
backref='pokemon')
|
||||
Pokemon.evolution_chain = relation(EvolutionChain, backref='pokemon')
|
||||
Pokemon.evolution_children = relation(Pokemon,
|
||||
Pokemon.child_pokemon = relation(Pokemon,
|
||||
primaryjoin=Pokemon.id==PokemonEvolution.from_pokemon_id,
|
||||
secondary=PokemonEvolution.__table__,
|
||||
secondaryjoin=PokemonEvolution.to_pokemon_id==Pokemon.id,
|
||||
backref=backref('evolution_parent',
|
||||
uselist=False,
|
||||
),
|
||||
backref=backref('parent_pokemon', uselist=False),
|
||||
)
|
||||
Pokemon.flavor_text = relation(PokemonFlavorText, order_by=PokemonFlavorText.version_id.asc(), backref='pokemon')
|
||||
Pokemon.foreign_names = relation(PokemonName, backref='pokemon')
|
||||
|
|
Loading…
Reference in a new issue