Ticket #1489: django_1489.2.diff

File django_1489.2.diff, 573 bytes (added by Christopher Lenz <cmlenz@…>, 19 years ago)

Corrected patch

  • django/contrib/admin/views/main.py

     
    405405        rel_opts_name = related.get_accessor_name()
    406406        if isinstance(related.field.rel, models.OneToOne):
    407407            try:
    408                 sub_obj = getattr(obj, 'get_%s' % rel_opts_name)()
     408                sub_obj = getattr(obj, rel_opts_name)
    409409            except ObjectDoesNotExist:
    410410                pass
    411411            else:
Back to Top