#25019: DjangoJSONEncoder does not encode UUIDs
-------------------------------------+-------------------------------------
Reporter: lukas-hetzenecker | Owner: nobody
Type: New feature | Status: new
Component: Core | Version: master
(Serialization) | Keywords: UUIDField
Severity: Normal | DjangoJSONEncoder
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Django extends the standard the json encoder from the standard library to
enhance its functionality, for example by providing methods to serialize
Datetimes and Decimals.
Because UUIDField was included in Django, serialization of uuid.UUID
should be possible too.
There are projects out there that make use of UUIDFields and that will run
in problems if they try to serialize the model. An example for such a bug
report is https://github.com/sehmaschine/django-grappelli/issues/635
Example project is attached.
--
Ticket URL: <https://code.djangoproject.com/ticket/25019>
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/060.25468a746094540deb6db51ed57b0005%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.