From: Lynn "Zhorken" Vaughan Date: Tue, 14 Dec 2010 01:24:14 +0000 (-0500) Subject: Give move changelogs a few more relations. #78 X-Git-Tag: veekun-promotions/2010122201~4 X-Git-Url: http://git.veekun.com/zzz-pokedex.git/commitdiff_plain/faf75c435db7aa72f901882b74417c216f479676 Give move changelogs a few more relations. #78 --- diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 9eb9dd9..e7bd48d 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -1435,6 +1435,11 @@ Move.effect = markdown.MoveEffectProperty('effect') Move.short_effect = markdown.MoveEffectProperty('short_effect') MoveChangelog.changed_in = relation(VersionGroup, backref='move_changelog') +MoveChangelog.move_effect = relation(MoveEffect, backref='move_changelog') +MoveChangelog.type = relation(Type, backref='move_changelog') + +MoveChangelog.effect = markdown.MoveEffectProperty('effect') +MoveChangelog.short_effect = markdown.MoveEffectProperty('short_effect') MoveEffect.category_map = relation(MoveEffectCategoryMap) MoveEffect.categories = association_proxy('category_map', 'category')