📅  最后修改于: 2022-03-11 14:58:05.299000             🧑  作者: Mango
class TicketDetail(DetailView):
model = Ticket
def get_object(self, queryset=None):
return Ticket.objects.get(uuid=self.kwargs.get("uuid"))