Skip to content

Commit

Permalink
make use of parameter with_notification
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Mar 21, 2019
1 parent a33f8c9 commit e815cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shop_paypal/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def return_view(cls, request):
order = OrderModel.objects.create_from_cart(cart, request)
order.populate_from_cart(cart, request)
order.add_paypal_payment(payment.to_dict())
order.save()
order.save(with_notification=True)
return HttpResponseRedirect(order.get_absolute_url())
return cls.cancel_view(request)

Expand Down

0 comments on commit e815cdf

Please sign in to comment.