Ticket #1986: admin_list_bug.patch
File admin_list_bug.patch, 652 bytes (added by , 18 years ago) |
---|
-
admin_list.py
154 154 # FloatFields are special: Zero-pad the decimals. 155 155 elif isinstance(f, models.FloatField): 156 156 if field_val is not None: 157 result_repr = ('%%.%sf' % f.decimal_places) % f ield_val157 result_repr = ('%%.%sf' % f.decimal_places) % float(field_val) 158 158 else: 159 159 result_repr = EMPTY_CHANGELIST_VALUE 160 160 # Fields with choices are special: Use the representation