Changes between Initial Version and Version 1 of Ticket #16034, comment 1


Ignore:
Timestamp:
05/18/2011 10:13:10 AM (4 years ago)
Author:
thepapermen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16034, comment 1

    initial v1  
    33def human_readable(value, arg):
    44
    5     if hasattr(value, 'get_' + str(arg) + '_display'):
     5    if hasattr(value, 'get_%s_display' % arg):
    66        return getattr(value, 'get_%s_display' % arg)()
    77    elif hasattr(value, str(arg)):
Back to Top