Ticket #16433: django-16433.patch

File django-16433.patch, 498 bytes (added by admackin@…, 13 years ago)

Patch against r17665

  • django/contrib/admin/util.py

     
    304304def help_text_for_field(name, model):
    305305    try:
    306306        help_text = model._meta.get_field_by_name(name)[0].help_text
    307     except models.FieldDoesNotExist:
     307    except (models.FieldDoesNotExist, AttributeError):
    308308        help_text = ""
    309309    return smart_unicode(help_text)
    310310
Back to Top