'Fulfil'

def fulfil(self):

    for p in self.orderedproduct_set.all():
        if (not p.fulfilled):
            product = p.product
            product.stock_quantity -= p.quantity
            product.save()
            p.fulfilled = True
            p.save()
        if p.subscription:
            p.subscription.renew()
