Ticket #1489: django_1489.2.diff
File django_1489.2.diff, 573 bytes (added by , 19 years ago) |
---|
-
django/contrib/admin/views/main.py
405 405 rel_opts_name = related.get_accessor_name() 406 406 if isinstance(related.field.rel, models.OneToOne): 407 407 try: 408 sub_obj = getattr(obj, 'get_%s' % rel_opts_name)()408 sub_obj = getattr(obj, rel_opts_name) 409 409 except ObjectDoesNotExist: 410 410 pass 411 411 else: