JourneyJoker/payment/views.py

11 lines
350 B
Python
Raw Normal View History

2021-04-18 14:46:57 +00:00
from django.views.generic import DetailView
from django.shortcuts import get_object_or_404
from .models.invoicepayment import InvoicePayment
2021-04-18 14:46:57 +00:00
class PaymentStatusView(DetailView):
model = InvoicePayment
template_name = "payment/status.html"
def get_object(self):
return get_object_or_404(InvoicePayment, uuid=self.kwargs["uuid"])