Ticket #827: autogen.diff

File autogen.diff, 650 bytes (added by aaronsw, 19 years ago)

patch

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

     
    361361                    try:
    362362                        header = func.short_description
    363363                    except AttributeError:
    364                         header = func.__name__
     364                        header = func.__name__.replace('_', ' ')
    365365                # Non-field list_display values don't get ordering capability.
    366366                raw_template.append('<th>%s</th>' % capfirst(header))
    367367            else:
Back to Top