From c32bc1a7a7bbb3d5bd0a2c11bc77dd5ab1c32fbc Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 9 Sep 2014 08:29:49 -0400 Subject: 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. --- docs/ref/settings.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'docs/ref') diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index e2b2f2d9c7..6c380dd2c3 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 -- cgit v1.3