Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…s, timo.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12222 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f56f6e94054dcafbdfc555460e3119b1ad018352 1 parent 9614b01
Jannis Leidel authored January 12, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/ref/models/instances.txt
2  docs/ref/models/instances.txt
@@ -508,9 +508,9 @@ of the view name::
508 508
 
509 509
     from django.db.models import permalink
510 510
 
  511
+    @models.permalink
511 512
     def get_absolute_url(self):
512 513
         return ('people_view', [str(self.id)])
513  
-    get_absolute_url = permalink(get_absolute_url)
514 514
 
515 515
 More details on named URL patterns are in the :ref:`URL dispatch documentation
516 516
 <topics-http-urls>`.

0 notes on commit f56f6e9

Please sign in to comment.
Something went wrong with that request. Please try again.