Django

Code

Changeset 5799

Show
Ignore:
Timestamp:
08/04/07 09:41:49 (1 year ago)
Author:
gwilson
Message:

Refs #3397 -- Corrected the Exception that is caught when ordering by non-fields (added in [4596]), thanks glin@seznam.cz.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/admin/views/main.py

    r5683 r5799  
    674674                        attr = getattr(lookup_opts.admin.manager.model, field_name) 
    675675                        order_field = attr.admin_order_field 
    676                     except IndexError: 
     676                    except AttributeError: 
    677677                        pass 
    678678                else: