Ticket #2917: admin_float_field.diff
File admin_float_field.diff, 770 bytes (added by , 18 years ago) |
---|
-
django/contrib/admin/templatetags/admin_list.py
152 152 # FloatFields are special: Zero-pad the decimals. 153 153 elif isinstance(f, models.FloatField): 154 154 if field_val is not None: 155 result_repr = ('%%.%sf' % f.decimal_places) % f ield_val155 result_repr = ('%%.%sf' % f.decimal_places) % float(field_val) 156 156 else: 157 157 result_repr = EMPTY_CHANGELIST_VALUE 158 158 # Fields with choices are special: Use the representation