11 lines
No EOL
335 B
Python
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"]) |