JourneyJoker/payment/views.py
2021-04-18 16:46:57 +02:00

11 lines
No EOL
335 B
Python

from django.views.generic import DetailView
from django.shortcuts import get_object_or_404
from .models import InvoicePayment
class PaymentStatusView(DetailView):
model = InvoicePayment
template_name = "payment/status.html"
def get_object(self):
return get_object_or_404(InvoicePayment, uuid=self.kwargs["uuid"])