From 8816af671441c0d1f42d5411a543c66a632397eb Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 17 Jan 2006 00:44:06 +0000 Subject: [PATCH] magic-removal: Changed default model.__init__() docstring to remove module_name and use field.attname instead of field.name git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2025 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/base.py b/django/db/models/base.py index 8116284192..98e2afafe7 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -127,7 +127,7 @@ class Model(object): # Give the class a docstring -- its definition. if cls.__doc__ is None: - cls.__doc__ = "%s.%s(%s)" % (opts.module_name, cls.__name__, ", ".join([f.name for f in opts.fields])) + cls.__doc__ = "%s(%s)" % (cls.__name__, ", ".join([f.attname for f in opts.fields])) if hasattr(cls, 'get_absolute_url'): cls.get_absolute_url = curry(get_absolute_url, opts, cls.get_absolute_url)