Ticket #4183: django_contrib_admin_views_main.py.diff
File django_contrib_admin_views_main.py.diff, 675 bytes (added by , 18 years ago) |
---|
-
usr/lib/python2.5/site-packages/django/contrib/admin/views/main.py
712 712 except models.FieldDoesNotExist: 713 713 pass 714 714 else: 715 if isinstance(f.rel, models.OneToOneRel) :715 if isinstance(f.rel, models.OneToOneRel) or (isinstance(f, models.ForeignKey) and f.primary_key == True): 716 716 # For OneToOneFields, don't try to order by the related object's ordering criteria. 717 717 pass 718 718 elif isinstance(f.rel, models.ManyToOneRel):