mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Add a VersionGroup.machines relationship.
This commit is contained in:
parent
cdf052555b
commit
61ed3c4ccb
1 changed files with 3 additions and 0 deletions
|
@ -2150,6 +2150,9 @@ VersionGroup.pokemon_move_methods = relationship(PokemonMoveMethod,
|
||||||
primaryjoin=and_(VersionGroup.id == VersionGroupPokemonMoveMethod.version_group_id),
|
primaryjoin=and_(VersionGroup.id == VersionGroupPokemonMoveMethod.version_group_id),
|
||||||
secondaryjoin=and_(PokemonMoveMethod.id == VersionGroupPokemonMoveMethod.pokemon_move_method_id),
|
secondaryjoin=and_(PokemonMoveMethod.id == VersionGroupPokemonMoveMethod.pokemon_move_method_id),
|
||||||
backref="version_groups")
|
backref="version_groups")
|
||||||
|
VersionGroup.machines = relationship(Machine,
|
||||||
|
innerjoin=True,
|
||||||
|
order_by=Machine.machine_number)
|
||||||
|
|
||||||
|
|
||||||
VersionGroupPokemonMoveMethod.version_group = relationship(VersionGroup,
|
VersionGroupPokemonMoveMethod.version_group = relationship(VersionGroup,
|
||||||
|
|
Loading…
Reference in a new issue