diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-01-12 23:37:07 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-01-12 23:37:07 +0000 |
| commit | f56f6e94054dcafbdfc555460e3119b1ad018352 (patch) | |
| tree | 7e9604733384a66b6ebd8122c71e26df7f3c4518 /docs | |
| parent | 9614b0190fdf65df05846151c6cba3f58a1ff992 (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/instances.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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 <topics-http-urls>`. |
