Add PaymentDetailAPIView for retrieving payment details and update URL routing

This commit is contained in:
2025-04-05 18:58:12 +05:00
parent 02f680d579
commit 93e50b696c
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ class ListCreatePaymentView(StaffEditorPermissionMixin, generics.ListCreateAPIVi
class PaymentDetailAPIView(StaffEditorPermissionMixin, generics.RetrieveAPIView):
queryset = Payment.objects.select_related("user", "devices").all()
queryset = Payment.objects.select_related("user").all()
serializer_class = PaymentSerializer
lookup_field = "pk"