mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Add a couple relations for move effect changelogs.
This commit is contained in:
parent
96c5c6a09f
commit
1bfbaa67b1
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue