#29738: Django can't serialize DateTimeTZRange(lower=None, upper=None,
bounds='[)')
-------------------------------------+-------------------------------------
Reporter: Graham Mayer | Owner: Can
| Sarıgöl
Type: Bug | Status: assigned
Component: contrib.postgres | Version: 2.0
Severity: Normal | Resolution:
Keywords: rangefield | Triage Stage: Accepted
postgresql psycopg2 migrations |
removed |
Has patch: 0 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Can Sarıgöl):
Can I change **serializer_factory** like this? so that all unserialized
values can be tried to be available.
{{{
def serializer_factory(value):
...
from django.utils.deconstruct import deconstructible
deconstructible_value = deconstructible(
value.__class__,
path=value.__module__ + "." + value.__class__.__name__
)
value = deconstructible_value(value.__init__)
return DeconstructableSerializer(value)
raise ValueError(...)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29738#comment:6>
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/069.53710638a5a02b8083b3c4dfe4f6cbb2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.