How can I get 'pk' or 'id' in `get_context_data` from CBV?

How can I get 'pk' or 'id' in get_context_data from CBV DetailView? class MyDetail(DetailView): model = Book template_name = 'book.html' def get_context_data(self, **kwargs): ...