summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-09-09 08:29:49 -0400
committerTim Graham <timograham@gmail.com>2014-09-09 11:07:41 -0400
commita8ded528b3c2f66d56f1f5499cf2021f3829c8e4 (patch)
treeb525258586bd4e28abb4396eb298bc9fae3ba91a /docs/ref
parent987fce90bfa9bbbe4279fa8cd547eaa6319d157b (diff)
[1.7.x] Fixed #11775 -- Made ABSOLUTE_URL_OVERRIDES work with models that don't define get_absolute_url().
Thanks jukvalim for the report and initial patch, and Preston Timmons for review. Backport of c32bc1a7a7 from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/settings.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index 208f27159b..b8b4f5ffa9 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -28,7 +28,7 @@ ABSOLUTE_URL_OVERRIDES
Default: ``{}`` (Empty dictionary)
A dictionary mapping ``"app_label.model_name"`` strings to functions that take
-a model object and return its URL. This is a way of overriding
+a model object and return its URL. This is a way of inserting or overriding
``get_absolute_url()`` methods on a per-installation basis. Example::
ABSOLUTE_URL_OVERRIDES = {
@@ -39,6 +39,11 @@ a model object and return its URL. This is a way of overriding
Note that the model name used in this setting should be all lower-case, regardless
of the case of the actual model class name.
+.. versionchanged:: 1.7.1
+
+ ``ABSOLUTE_URL_OVERRIDES`` now works on models that don't declare
+ ``get_absolute_url()``.
+
.. setting:: ADMINS
ADMINS