mirror of
https://github.com/django/django.git
synced 2025-07-05 02:09:13 +00:00
mod fix in result_headers
git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@1072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
33640b247a
commit
27ef7cef10
@ -120,7 +120,7 @@ def result_headers(cl):
|
|||||||
if field_name == '__repr__':
|
if field_name == '__repr__':
|
||||||
header = lookup_opts.verbose_name
|
header = lookup_opts.verbose_name
|
||||||
else:
|
else:
|
||||||
func = getattr(mod.Klass, field_name) # Let AttributeErrors propogate.
|
func = getattr(cl.mod.Klass, field_name) # Let AttributeErrors propogate.
|
||||||
try:
|
try:
|
||||||
header = func.short_description
|
header = func.short_description
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user