diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index 7910d242c0..ff14a0e8fe 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -508,9 +508,9 @@ of the view name:: from django.db.models import permalink + @models.permalink def get_absolute_url(self): return ('people_view', [str(self.id)]) - get_absolute_url = permalink(get_absolute_url) More details on named URL patterns are in the :ref:`URL dispatch documentation `.