detail view use slug or anything else pk code example
Example: detail view use slug or anything else pk
class TicketDetail(DetailView):
model = Ticket
def get_object(self, queryset=None):
return Ticket.objects.get(uuid=self.kwargs.get("uuid"))