class TicketDetail(DetailView): model = Ticket def get_object(self, queryset=None): return Ticket.objects.get(uuid=self.kwargs.get("uuid"))