summaryrefslogtreecommitdiff
path: root/django/utils/deconstruct.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-12-25 13:30:37 +0100
committerClaude Paroz <claude@2xlibre.net>2014-12-25 13:53:13 +0100
commit234a2e0b6bcad5536d5d6cbb398eb6b7cc4eb67e (patch)
treed4bda886fd689a036813ae1f20ca7fa599c7b4c2 /django/utils/deconstruct.py
parenta6f0b6a98fef540ae88a61fa4104fc60a1c8eb76 (diff)
downloaddjango-234a2e0b6bcad5536d5d6cbb398eb6b7cc4eb67e.tar.gz
Fixed #23866 -- Harmonized refs to Django documentation from code
Diffstat (limited to 'django/utils/deconstruct.py')
-rw-r--r--django/utils/deconstruct.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/django/utils/deconstruct.py b/django/utils/deconstruct.py
index a51a16961d..e0713a6d61 100644
--- a/django/utils/deconstruct.py
+++ b/django/utils/deconstruct.py
@@ -1,6 +1,8 @@
from __future__ import absolute_import # Avoid importing `importlib` from this package.
from importlib import import_module
+from django.utils.version import get_docs_version
+
def deconstructible(*args, **kwargs):
"""
@@ -38,8 +40,8 @@ def deconstructible(*args, **kwargs):
"classes. Please move the object into the main module "
"body to use migrations.\n"
"For more information, see "
- "https://docs.djangoproject.com/en/dev/topics/migrations/#serializing-values"
- % (name, module_name))
+ "https://docs.djangoproject.com/en/%s/topics/migrations/#serializing-values"
+ % (name, module_name, get_docs_version()))
return (
path or '%s.%s' % (obj.__class__.__module__, name),
obj._constructor_args[0],