Author: lukeplant
Date: 2008-12-03 09:47:19 -0600 (Wed, 03 Dec 2008)
New Revision: 9563
Modified:
django/trunk/django/contrib/admin/validation.py
Log:
Fixed regression introduced in r9550
Modified: django/trunk/django/contrib/admin/validation.py
===================================================================
--- django/trunk/django/contrib/admin/validation.py 2008-12-03 15:45:19 UTC
(rev 9562)
+++ django/trunk/django/contrib/admin/validation.py 2008-12-03 15:47:19 UTC
(rev 9563)
@@ -36,6 +36,8 @@
except models.FieldDoesNotExist:
raise ImproperlyConfigured("%s.list_display[%d],
%r is not a callable or an attribute of %r or found in the model %r."
% (cls.__name__, idx, field, cls.__name__,
model._meta.object_name))
+ else:
+ # getattr(model, field) could be an
X_RelatedObjectsDescriptor
f = fetch_attr(cls, model, opts, "list_display[%d]" %
idx, field)
if isinstance(f, models.ManyToManyField):
raise ImproperlyConfigured("'%s.list_display[%d]',
'%s' is a ManyToManyField which is not supported."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---