Changes between Initial Version and Version 1 of Ticket #11294, comment 6
- Timestamp:
- Jun 6, 2013, 4:34:51 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11294, comment 6
initial v1 1 1 The problem here is two folds: 2 2 3 1. By default, admin will not localize input values. Not localized input is rendered as `str(value)`, which is `Decimal.__str__`. List display uses `display_for_field`, which localizes value if I18N is on.3 1. By default, admin will not localize input values. Not localized input is rendered as `str(value)`, which is `Decimal.__str__`. List display uses `display_for_field`, which localizes value if `USE_L10N` is true. 4 4 2. When forced to localize (by settings `ModelForm._opts.localized_fields = '__all__'`), decimal input still does not honour `DecimalField.decimal_places` and is displayed differently from list. 5 5