Author: mtredinnick
Date: 2007-03-07 06:23:01 -0600 (Wed, 07 Mar 2007)
New Revision: 4672
Modified:
django/trunk/docs/settings.txt
Log:
Fixed #3646 -- Corrected documentation for ABSOLUTE_URL_OVERRIDES. Patch from
James Bennett.
Modified: django/trunk/docs/settings.txt
===================================================================
--- django/trunk/docs/settings.txt 2007-03-07 12:15:40 UTC (rev 4671)
+++ django/trunk/docs/settings.txt 2007-03-07 12:23:01 UTC (rev 4672)
@@ -162,10 +162,13 @@
``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
---------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---