projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3ee5596
)
Give move changelogs a few more relations. #78
author
Lynn "Zhorken" Vaughan
<zhorken@gmail.com>
Tue, 14 Dec 2010 01:24:14 +0000
(20:24 -0500)
committer
Lynn "Zhorken" Vaughan
<zhorken@gmail.com>
Tue, 14 Dec 2010 01:24:14 +0000
(20:24 -0500)
pokedex/db/tables.py
patch
|
blob
|
history
diff --git
a/pokedex/db/tables.py
b/pokedex/db/tables.py
index
9eb9dd9
..
e7bd48d
100644
(file)
--- 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')
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')