Author: gwilson
Date: 2007-08-04 09:41:49 -0500 (Sat, 04 Aug 2007)
New Revision: 5799
Modified:
django/trunk/django/contrib/admin/views/main.py
Log:
Refs #3397 -- Corrected the Exception that is caught when ordering by
non-fields (added in [4596]), thanks [EMAIL PROTECTED]
Modified: django/trunk/django/contrib/admin/views/main.py
===================================================================
--- django/trunk/django/contrib/admin/views/main.py 2007-08-04 03:39:24 UTC
(rev 5798)
+++ django/trunk/django/contrib/admin/views/main.py 2007-08-04 14:41:49 UTC
(rev 5799)
@@ -673,7 +673,7 @@
try:
attr = getattr(lookup_opts.admin.manager.model,
field_name)
order_field = attr.admin_order_field
- except IndexError:
+ except AttributeError:
pass
else:
if not isinstance(f.rel, models.ManyToOneRel) or not
f.null:
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---