Feature request: disable localization in some model fields
|Reported by:||Denilson Figueiredo de Sá||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 6 years ago by
|Patch needs improvement:||unset|
|Status:||new → closed|