I came across this while looking to serialize a `form.cleaned_data`
dictionary to JSON using the internal `DjangoJSONEncoder` - to work around
it in what is ostensibly a re-usable app, I had to subclass the
`DjangoJSONEncoder` to handle datetimes before going to the `super()`
I have a unit test and patch available, if accepted.
--
Ticket URL: <https://code.djangoproject.com/ticket/25189>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
I can't immediately think of anything that could go wrong.
--
Ticket URL: <https://code.djangoproject.com/ticket/25189#comment:1>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/25189#comment:2>
* needs_docs: 0 => 1
Comment:
As noted on the pull request, it seems this would only work with `USE_L18N
= False`. Should we add it all locale's `formats.py`? I'm not sure. At
least documentation is needed.
--
Ticket URL: <https://code.djangoproject.com/ticket/25189#comment:3>
Comment (by kezabelle):
Given the need to touch at least 40 locales files, and presumably write at
least N further tests to cover those, I'm inclined to say kick the ticket
to DDN and see if it ever gets at least +0, rather than spend further time
refining it.
--
Ticket URL: <https://code.djangoproject.com/ticket/25189#comment:4>
Comment (by timgraham):
We removed the "Design Decision Needed" triage stage since that's where
tickets went to die. If you want to write to the mailing list to get
feedback on this, please do that. Otherwise, it's probably better to close
the ticket rather than leave it open without a clear path to resolution.
--
Ticket URL: <https://code.djangoproject.com/ticket/25189#comment:5>
* status: new => closed
* resolution: => wontfix
Comment:
Marking as "won't fix" until someone is motivated to write to the mailing
list and argue for this change or propose an alternate solution.
--
Ticket URL: <https://code.djangoproject.com/ticket/25189#comment:6>
Comment (by timgraham):
See also #11385 and #23448.
--
Ticket URL: <https://code.djangoproject.com/ticket/25189#comment:7>