diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index d007659301..8bb6cf9cc5 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -515,7 +515,7 @@ the ``url`` function):: ...and then using that name to perform the reverse URL resolution instead of the view name:: - from django.db.models import permalink + from django.db import models @models.permalink def get_absolute_url(self):