Permalink
Browse files

Make the VersionGroup.machines relationship into a backref

  • Loading branch information...
1 parent 61ed3c4 commit 97e15e3f082672477f807163fcffcbfeb2f69c04 @encukou committed Feb 29, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 pokedex/db/tables.py
View
@@ -1783,7 +1783,7 @@ class VersionGroupRegion(TableBase):
Machine.item = relationship(Item)
Machine.version_group = relationship(VersionGroup,
- innerjoin=True, lazy='joined')
+ innerjoin=True, lazy='joined', backref='machines')
Move.changelog = relationship(MoveChangelog,
@@ -2150,9 +2150,6 @@ class VersionGroupRegion(TableBase):
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,

0 comments on commit 97e15e3

Please sign in to comment.