

def get_berry_flavors(self, obj):
    flavor_map_objects = BerryFlavorMap.objects.filter(berry=obj)
    flavor_maps = BerryFlavorMapSerializer(flavor_map_objects, many=True, context=self.context).data
    flavors = []
    for map in flavor_maps:
        del map['berry']
        self.append(map)
    return flavors

dataset/ETHPy150Open phalt/pokeapi/pokemon_v2/serializers.py BerryDetailSerializer.get_berry_flavors/VarMisuse@62/92 `flavors`->`self`