Add a couple relations for move effect changelogs.

This commit is contained in:
Eevee 2011-02-09 23:37:41 -08:00
parent 96c5c6a09f
commit 1bfbaa67b1

View file

@ -1451,8 +1451,14 @@ MoveChangelog.short_effect = markdown.MoveEffectProperty('short_effect')
MoveEffect.category_map = relation(MoveEffectCategoryMap) MoveEffect.category_map = relation(MoveEffectCategoryMap)
MoveEffect.categories = association_proxy('category_map', 'category') MoveEffect.categories = association_proxy('category_map', 'category')
MoveEffect.changelog = relation(MoveEffectChangelog,
order_by=MoveEffectChangelog.changed_in_version_group_id.desc(),
backref='move_effect',
)
MoveEffectCategoryMap.category = relation(MoveEffectCategory) MoveEffectCategoryMap.category = relation(MoveEffectCategory)
MoveEffectChangelog.changed_in = relation(VersionGroup, backref='move_effect_changelog')
MoveFlag.flag = relation(MoveFlagType) MoveFlag.flag = relation(MoveFlagType)
MoveFlavorText.version_group = relation(VersionGroup) MoveFlavorText.version_group = relation(VersionGroup)