Add a VersionGroup.pokemon_moves relation.

This commit is contained in:
Lynn "Zhorken" Vaughan 2012-11-18 15:59:35 -05:00
parent 9a1f38a76d
commit 9c72fe73e0

View file

@ -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,