right, tempinvoice

This commit is contained in:
Thomas Steen Rasmussen 2017-06-20 00:18:57 +02:00
parent cc874cdbb8
commit e839396d40

View file

@ -540,7 +540,8 @@ class CoinifyRedirectView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureUn
coinifyinvoice = None
for tempinvoice in order.coinify_api_invoices.all():
# we already have a coinifyinvoice for this order, check if it expired
if not coinifyinvoice.expired:
if not tempinvoice.expired:
# this invoice is not expired, we are good to go
coinifyinvoice = tempinvoice
break