Ticket #3397: patch_allow_ordering_by_nonfields_fix.diff
File patch_allow_ordering_by_nonfields_fix.diff, 610 bytes (added by , 17 years ago) |
---|
-
django/contrib/admin/views/main.py
355 355 try: 356 356 attr = getattr(self.model, field_name) 357 357 order_field = attr.admin_order_field 358 except IndexError:358 except AttributeError: 359 359 pass 360 360 else: 361 361 if not isinstance(f.rel, models.ManyToOneRel) or not f.null: