Ticket #3646: 3646.diff
File 3646.diff, 725 bytes (added by , 18 years ago) |
---|
-
docs/settings.txt
162 162 ``get_absolute_url()`` methods on a per-installation basis. Example:: 163 163 164 164 ABSOLUTE_URL_OVERRIDES = { 165 'blogs. Weblog': lambda o: "/blogs/%s/" % o.slug,166 'news. Story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug),165 'blogs.weblog': lambda o: "/blogs/%s/" % o.slug, 166 'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug), 167 167 } 168 168 169 Note that the model name used in this setting should be all lower-case, regardless 170 of the case of the actual model class name. 171 169 172 ADMIN_FOR 170 173 --------- 171 174