#28388: JSONField cannot be overridden to use OrderedDict as
python-representation
of objects of JSON
----------------------------------+--------------------------------------
Reporter: Vladimir Chub | Owner: (none)
Type: New feature | Status: closed
Component: contrib.postgres | Version: 1.11
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
----------------------------------+--------------------------------------
Comment (by Vladimir Chub):
>Perhaps there are other custom fields that use the PostgreSQL's json
datatype (which does preserve ordering) that will work for your use case.
Of course there is a `json` field in PostgreSQl supporting ordering
https://www.postgresql.org/docs/9.6/static/datatype-json.html
>Because the json type stores an exact copy of the input text, it will
preserve semantically-insignificant white space between tokens, as well as
the order of keys within JSON objects
Django is now using `jsonrb` as JSONField, but also something like
OrderedJSONField mapped with PostgreSQL `json` field can be implemented.
Are there any chances of if?
--
Ticket URL: <https://code.djangoproject.com/ticket/28388#comment:3>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.876a6c929abe18c3851b34f66bb8c9cd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.