JourneyJoker/payment/views.py
Klaus-Uwe Mitterer d2792b8aa3 Refactor payment app
Generate invoice from HTML
Remove now unused dependency on PyInvoice
2021-06-10 13:18:52 +02:00

11 lines
No EOL
350 B
Python

from django.views.generic import DetailView
from django.shortcuts import get_object_or_404
from .models.invoicepayment 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"])