MCPcopy
hub / github.com/PokeAPI/pokeapi / get_baby_trigger_for

Method get_baby_trigger_for

pokemon_v2/serializers.py:1989–1998  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

1987 }
1988 )
1989 def get_baby_trigger_for(self, obj):
1990 try:
1991 chain_object = EvolutionChain.objects.get(baby_trigger_item=obj)
1992 data = EvolutionChainSummarySerializer(
1993 chain_object, context=self.context
1994 ).data
1995 except EvolutionChain.DoesNotExist:
1996 data = None
1997
1998 return data
1999
2000
2001########################

Callers

nothing calls this directly

Calls 2

getMethod · 0.80

Tested by

no test coverage detected