Kaydet (Commit) f56f6e94 authored tarafından Jannis Leidel's avatar Jannis Leidel

Fixed #9326 - Use decorator syntax in get_absolute_url example. Thanks, timo.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12222 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 9614b019
......@@ -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
<topics-http-urls>`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment