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
This commit is contained in:
parent
a0433627a0
commit
8816af6714
|
@ -127,7 +127,7 @@ class Model(object):
|
||||||
|
|
||||||
# Give the class a docstring -- its definition.
|
# Give the class a docstring -- its definition.
|
||||||
if cls.__doc__ is None:
|
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'):
|
if hasattr(cls, 'get_absolute_url'):
|
||||||
cls.get_absolute_url = curry(get_absolute_url, opts, cls.get_absolute_url)
|
cls.get_absolute_url = curry(get_absolute_url, opts, cls.get_absolute_url)
|
||||||
|
|
Loading…
Reference in New Issue