Add a VersionGroup.machines relationship.

This commit is contained in:
Lynn "Zhorken" Vaughan 2012-02-29 00:32:10 -05:00
parent cdf052555b
commit 61ed3c4ccb

View file

@ -2150,6 +2150,9 @@ VersionGroup.pokemon_move_methods = relationship(PokemonMoveMethod,
primaryjoin=and_(VersionGroup.id == VersionGroupPokemonMoveMethod.version_group_id),
secondaryjoin=and_(PokemonMoveMethod.id == VersionGroupPokemonMoveMethod.pokemon_move_method_id),
backref="version_groups")
VersionGroup.machines = relationship(Machine,
innerjoin=True,
order_by=Machine.machine_number)
VersionGroupPokemonMoveMethod.version_group = relationship(VersionGroup,