#33974: Serializer incorrectly serializes Integer ArrayField as string
-------------------------------------+-------------------------------------
Reporter: Arthur Hanson | Owner: nobody
Type: New feature | Status: closed
Component: Core | Version: 4.0
(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 Mariusz Felisiak):
* status: new => closed
* resolution: => wontfix
* component: Uncategorized => Core (Serialization)
* type: Uncategorized => New feature
Comment:
Thanks for the report however (de-)serialization works for me with
`ArrayField(base_field=models.PositiveSmallIntegerField())`. Are there any
practical issues with the current approach (except for your preferences)?
Other complex fields (such as `JSONField`) are also serialized as strings.
I'm afraid that the proposed change is backward incompatible and you can
always use a custom serializer, if you need a different format.
--
Ticket URL: <https://code.djangoproject.com/ticket/33974#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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070182fc75e6e5-8e3c51de-f711-4c72-a9e0-e854ff24164b-000000%40eu-central-1.amazonses.com.