Give move changelogs a few more relations. #78
authorLynn "Zhorken" Vaughan <zhorken@gmail.com>
Tue, 14 Dec 2010 01:24:14 +0000 (20:24 -0500)
committerLynn "Zhorken" Vaughan <zhorken@gmail.com>
Tue, 14 Dec 2010 01:24:14 +0000 (20:24 -0500)
pokedex/db/tables.py

index 9eb9dd9..e7bd48d 100644 (file)
@@ -1435,6 +1435,11 @@ Move.effect = markdown.MoveEffectProperty('effect')
 Move.short_effect = markdown.MoveEffectProperty('short_effect')
 
 MoveChangelog.changed_in = relation(VersionGroup, backref='move_changelog')
 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')
 
 MoveEffect.category_map = relation(MoveEffectCategoryMap)
 MoveEffect.categories = association_proxy('category_map', 'category')