projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ede8686
)
Added Move.type relation.
author
Eevee
<git@veekun.com>
Tue, 28 Jul 2009 02:09:11 +0000
(19:09 -0700)
committer
Eevee
<git@veekun.com>
Tue, 28 Jul 2009 02:09:11 +0000
(19:09 -0700)
pokedex/db/tables.py
patch
|
blob
|
history
diff --git
a/pokedex/db/tables.py
b/pokedex/db/tables.py
index
31a4210
..
c2a0609
100644
(file)
--- a/
pokedex/db/tables.py
+++ b/
pokedex/db/tables.py
@@
-375,6
+375,8
@@
EvolutionChain.growth_rate = relation(GrowthRate, backref='evolution_chains')
LocationArea.location = relation(Location, backref='areas')
+Move.type = relation(Type, backref='moves')
+
Pokemon.abilities = relation(Ability, secondary=PokemonAbility.__table__,
order_by=PokemonAbility.slot,
backref='pokemon')