summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2014-09-08 14:15:33 +0200
committerTim Graham <timograham@gmail.com>2014-09-08 15:32:32 -0400
commitd4467ede7730e0dc7a703f6865ec9ce9c7580d5f (patch)
tree3b0946e6996ebcd695317da482d294e49239d5a5
parentd28b5f13b332bda4317949b98e33f528d30ec006 (diff)
Updated links to point to dev documentation.
-rw-r--r--django/db/migrations/writer.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/django/db/migrations/writer.py b/django/db/migrations/writer.py
index ac5da0953b..05fcfba202 100644
--- a/django/db/migrations/writer.py
+++ b/django/db/migrations/writer.py
@@ -333,12 +333,13 @@ class MigrationWriter(object):
module = import_module(module_name)
if not hasattr(module, value.__name__):
raise ValueError(
- "Could not find function %s in %s.\nPlease note that "
- "due to Python 2 limitations, you cannot serialize "
- "unbound method functions (e.g. a method declared\n"
- "and used in the same class body). Please move the "
- "function into the main module body to use migrations.\n"
- "For more information, see https://docs.djangoproject.com/en/1.7/topics/migrations/#serializing-values"
+ "Could not find function %s in %s.\n"
+ "Please note that due to Python 2 limitations, you cannot "
+ "serialize unbound method functions (e.g. a method "
+ "declared and used in the same class body). Please move "
+ "the function into the main module body to use migrations.\n"
+ "For more information, see "
+ "https://docs.djangoproject.com/en/dev/topics/migrations/#serializing-values"
% (value.__name__, module_name))
return "%s.%s" % (module_name, value.__name__), set(["import %s" % module_name])
# Classes