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


Ignore:
Timestamp:
May 18, 2011, 10:13:10 AM (14 years ago)
Author:
thepapermen

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