Ticket #17308: patch_r17159.diff

File patch_r17159.diff, 616 bytes (added by Pablo Martín, 7 years ago)
  • django/contrib/admin/util.py

     
    289289
    290290            if hasattr(attr, "short_description"):
    291291                label = attr.short_description
     292            elif isinstance(attr, property) and hasattr(attr, "fget") and hasattr(attr.fget, "short_description"):
     293                label = attr.fget.short_description
    292294            elif callable(attr):
    293295                if attr.__name__ == "<lambda>":
    294296                    label = "--"
Back to Top