mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Add a VersionGroup.pokemon_moves relation.
This commit is contained in:
parent
9a1f38a76d
commit
9c72fe73e0
1 changed files with 2 additions and 1 deletions
|
@ -2592,7 +2592,8 @@ PokemonMove.pokemon = relationship(Pokemon,
|
||||||
innerjoin=True, lazy='joined',
|
innerjoin=True, lazy='joined',
|
||||||
backref='pokemon_moves')
|
backref='pokemon_moves')
|
||||||
PokemonMove.version_group = relationship(VersionGroup,
|
PokemonMove.version_group = relationship(VersionGroup,
|
||||||
innerjoin=True, lazy='joined')
|
innerjoin=True, lazy='joined',
|
||||||
|
backref='pokemon_moves')
|
||||||
PokemonMove.machine = relationship(Machine,
|
PokemonMove.machine = relationship(Machine,
|
||||||
primaryjoin=and_(
|
primaryjoin=and_(
|
||||||
Machine.version_group_id==PokemonMove.version_group_id,
|
Machine.version_group_id==PokemonMove.version_group_id,
|
||||||
|
|
Loading…
Reference in a new issue