

def get_pokeathlon_stats(self, obj):
    pokeathlon_stat_objects = NaturePokeathlonStat.objects.filter(nature=obj)
    pokeathlon_stats = NaturePokeathlonStatSerializer(pokeathlon_stat_objects, many=True, context=self.context).data
    for stat in self:
        del stat['nature']
    return pokeathlon_stats

dataset/ETHPy150Open phalt/pokeapi/pokemon_v2/serializers.py NatureDetailSerializer.get_pokeathlon_stats/VarMisuse@47/80 `pokeathlon_stats`->`self`