diff --git a/docs/topics/class-based-views/generic-display.txt b/docs/topics/class-based-views/generic-display.txt index 66590849a0..68155f07db 100644 --- a/docs/topics/class-based-views/generic-display.txt +++ b/docs/topics/class-based-views/generic-display.txt @@ -427,6 +427,6 @@ object -- so we override it and wrap the call:: name that ``DetailView`` uses to find the value of the primary key used to filter the queryset. - If you want to call the group something else, you can set ``pk_url_kwarg`` - on the view. More details can be found in the reference for - :class:`~django.views.generic.detail.DetailView` + If you want to call the group something else, you can set + :attr:`~django.views.generic.detail.SingleObjectMixin.pk_url_kwarg` + on the view.