

def get_pokemon_form_sprites(self, obj):
    sprites_object = PokemonFormSprites.objects.get(pokemon_form_id=obj)
    sprites_data = PokemonFormSpritesSerializer(sprites_object, context=self.context).data
    sprites_data = json.loads(sprites_data['sprites'])
    host = self.context['request'].META['HTTP_HOST']
    for (key, val) in sprites_data.iteritems():
        if sprites_data[key]:
            sprites_data[key] = (('http://' + host) + sprites_data[key])
    return sprites_data

dataset/ETHPy150Open phalt/pokeapi/pokemon_v2/serializers.py PokemonFormDetailSerializer.get_pokemon_form_sprites/original