def apply_discount(line, discount, quantity):
    line.discount(discount, quantity, incl_tax=False)
Inserts a document into the Collection and returns its _id
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/offer/benefits.py/apply_discount--crossover with--dataset/ETHPy150Open lvieirajr/mongorest/mongorest/collection.py/Collection.insert_one