diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-03-07 12:23:01 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-03-07 12:23:01 +0000 |
| commit | 98b2e0a035fefa777cfda5a48283cd014703a505 (patch) | |
| tree | 37a623a1d7206bdab7934fa766c2db0c288307c6 /docs | |
| parent | 6af3409d98ce2a025b69666cd503d85e2f081e8d (diff) | |
Fixed #3646 -- Corrected documentation for ABSOLUTE_URL_OVERRIDES. Patch from
James Bennett.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4672 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/settings.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/settings.txt b/docs/settings.txt index b2ca11240a..b41281ee49 100644 --- a/docs/settings.txt +++ b/docs/settings.txt @@ -162,10 +162,13 @@ a model object and return its URL. This is a way of overriding ``get_absolute_url()`` methods on a per-installation basis. Example:: ABSOLUTE_URL_OVERRIDES = { - 'blogs.Weblog': lambda o: "/blogs/%s/" % o.slug, - 'news.Story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug), + 'blogs.weblog': lambda o: "/blogs/%s/" % o.slug, + 'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug), } +Note that the model name used in this setting should be all lower-case, regardless +of the case of the actual model class name. + ADMIN_FOR --------- |
