Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #9326 - Use decorator syntax in get_absolute_url example. Thank…

…s, timo.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f56f6e94054dcafbdfc555460e3119b1ad018352 1 parent 9614b01
Jannis Leidel jezdez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/ref/models/instances.txt
2  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(])
- get_absolute_url = permalink(get_absolute_url)
More details on named URL patterns are in the :ref:`URL dispatch documentation
Please sign in to comment.
Something went wrong with that request. Please try again.