From: Eevee Date: Tue, 28 Jul 2009 02:09:11 +0000 (-0700) Subject: Added Move.type relation. X-Git-Tag: veekun-promotions/2010050901~232 X-Git-Url: http://git.veekun.com/zzz-pokedex.git/commitdiff_plain/b07723b13003bcd3f197d321101ab15008cf5185?ds=inline Added Move.type relation. --- diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 31a4210..c2a0609 100644 --- 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')