#24916: DjangoJSONEncoder: Decimal type localization mechanism is missing -------------------------------------+------------------------------------- Reporter: vartagg | Owner: nobody Type: Bug | Status: closed Component: Core | Version: 1.8 (Serialization) | Severity: Normal | Resolution: wontfix Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by timgraham):
* status: new => closed * needs_better_patch: => 0 * resolution: => wontfix * needs_tests: => 0 * needs_docs: => 0 Comment: The JSON standard for serializing decimal values does not provide for localized formatting. (See JSON.org.) This is why values are not localized. I think it would also make the date less portable across locales. If you need localized values, then I'd suggest to create a custom encoder for your serializer of choice which outputs the decimals appropriately. If you disagree and feel this is something Django should provide, please raise the issue on the DevelopersMailingList. -- Ticket URL: <https://code.djangoproject.com/ticket/24916#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.a91c52cccccb9d4dc7333c66fb160649%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.