def apply_discount(line, discount, quantity):
    line.discount(discount, quantity, incl_tax=False)
Apply a given discount to the passed basket
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/offer/benefits.py/apply_discount