From 81b890b7cc17164470e44f017d30e8d4aa9b9e0c Mon Sep 17 00:00:00 2001 From: Julian Lawrance Date: Sun, 1 Dec 2019 12:53:00 +0000 Subject: [PATCH] Fix typo in variable name --- pokemon_v2/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemon_v2/serializers.py b/pokemon_v2/serializers.py index 1713cfa2..99f2142a 100644 --- a/pokemon_v2/serializers.py +++ b/pokemon_v2/serializers.py @@ -1830,7 +1830,7 @@ class TypeDetailSerializer(serializers.ModelSerializer): self.remove_type_entry(relations, type, direction='_damage_to') # add entry - damage_factor = relations['damage_factor'] + damage_factor = relation['damage_factor'] self.add_type_entry(relations, type, damage_factor, direction='_damage_to') del relation['generation']