diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index 7586159061..b30ca71142 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -715,7 +715,7 @@ For example:: def get_absolute_url(self): from django.urls import reverse - return reverse('people.views.details', args=[str(self.id)]) + return reverse('people-detail', kwargs={'pk' : self.pk}) One place Django uses ``get_absolute_url()`` is in the admin app. If an object defines this method, the object-editing page will have a "View on site" link