mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Multi-language markdown move properties
Singular property name for English text Plural property name for dict of texts keyed by language
This commit is contained in:
parent
d813e24b25
commit
30faa46ab6
2 changed files with 50 additions and 6 deletions
pokedex/db
|
@ -1521,11 +1521,20 @@ Move.super_contest_combo_prev = association_proxy('super_contest_combo_second',
|
|||
Move.target = relation(MoveTarget, backref='moves')
|
||||
Move.type = relation(Type, back_populates='moves')
|
||||
|
||||
Move.effect = markdown.MoveEffectProperty('effect')
|
||||
Move.effects = markdown.MoveEffectsProperty('effect')
|
||||
Move.short_effect = markdown.MoveEffectProperty('short_effect')
|
||||
Move.short_effects = markdown.MoveEffectsProperty('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.effects = markdown.MoveEffectsProperty('effect')
|
||||
MoveChangelog.short_effect = markdown.MoveEffectProperty('short_effect')
|
||||
MoveChangelog.short_effects = markdown.MoveEffectsProperty('short_effect')
|
||||
|
||||
MoveEffect.category_map = relation(MoveEffectCategoryMap)
|
||||
MoveEffect.categories = association_proxy('category_map', 'category')
|
||||
MoveEffect.changelog = relation(MoveEffectChangelog,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue