From faf75c435db7aa72f901882b74417c216f479676 Mon Sep 17 00:00:00 2001 From: "Lynn \"Zhorken\" Vaughan" Date: Mon, 13 Dec 2010 20:24:14 -0500 Subject: [PATCH] Give move changelogs a few more relations. #78 --- pokedex/db/tables.py | 5 +++++ 1 file changed, 5 insertions(+) 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') -- 2.7.4