@property
    def voucher_discounts(self):
        """
        Return basket discounts from vouchers.
        """
        discounts = []
        for application in self.applications.values():
            if application['voucher'] and application['discount'] > 0:
                discounts.append(application)
        return discounts
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/offer/results.py/OfferApplications.voucher_discounts/original