Detail View Gunakan Slug atau apapun PK

class TicketDetail(DetailView):
    model = Ticket

    def get_object(self, queryset=None):
        return Ticket.objects.get(uuid=self.kwargs.get("uuid"))
Clever Constrictor