This query returns all cones with a chocolate scoop and a vanilla scoop.
VANILLA, CHOCOLATE, MINT, STRAWBERRY = 1, 2, 3, 4 # constants for flavors
choco_vanilla_cones = IceCream.objects.filter(scoops__contains=[CHOCOLATE, VANILLA])
Don't forget to import the IceCream model from your models.py ...