#25019: DjangoJSONEncoder does not encode UUIDs
-------------------------------------+-------------------------------------
     Reporter:  lukas-hetzenecker    |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core                 |                  Version:  1.8
  (Serialization)                    |
     Severity:  Normal               |               Resolution:
     Keywords:  UUIDField            |             Triage Stage:  Accepted
  DjangoJSONEncoder                  |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by yarbelk):

 * status:  closed => new
 * resolution:  fixed =>
 * version:  master => 1.8
 * type:  New feature => Bug


Old description:

> 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.

New description:

 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.

 === EDIT ===

 Reopened as Bug with version 1.8 in response to conversation with Russell
 Keith-Magee  in django-developers mailing list.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/25019#comment:5>
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/075.ee217fe52f8952e1e21d9b4653fc5d38%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to