From 7347da558a76d58b3d9b4825cc361020ef90a377 Mon Sep 17 00:00:00 2001 From: Eevee Date: Mon, 27 Jul 2009 19:09:11 -0700 Subject: [PATCH] Added Move.type relation. --- pokedex/db/tables.py | 2 ++ 1 file changed, 2 insertions(+) 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')