Changes between Initial Version and Version 1 of Ticket #16034, comment 1
- Timestamp:
- May 18, 2011, 10:13:10 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16034, comment 1
initial v1 3 3 def human_readable(value, arg): 4 4 5 if hasattr(value, 'get_ ' + str(arg) + '_display'):5 if hasattr(value, 'get_%s_display' % arg): 6 6 return getattr(value, 'get_%s_display' % arg)() 7 7 elif hasattr(value, str(arg)):