Feature request: disable localization in some model fields
|Reported by:||denilsonsa||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In 1.2, we now have L10N, so now Integer fields automatically have the thousand separator. That's a neat addition.
Also, we have a "localize" parameter to Form fields, setting if they should be localized or not.
However... I miss such "localize" parameter at the Model itself. For me, it makes sense to set some fields as "do not localize". For instance, suppose I have a IntegerField that holds a barcode. It makes no sense to ever localize such field, so I would like to tell this to Django.
Suggestion: add "localize" parameter also to model fields.
Change History (3)
comment:1 Changed 5 years ago by ubernostrum
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Resolution set to wontfix
- Status changed from new to closed
comment:2 Changed 5 years ago by denilsonsa
- Resolution wontfix deleted
- Status changed from closed to reopened