Re: [Django] #36265: Add support for serializing zoneinfo.ZoneInfo objects in migrations (was: Generated Field with TruncDate and tzinfo)

3 views
Skip to first unread message

Django

unread,
Mar 19, 2025, 8:30:59 AM3/19/25
to django-...@googlegroups.com
#36265: Add support for serializing zoneinfo.ZoneInfo objects in migrations
----------------------------------+------------------------------------
Reporter: Sandeep Harlalka | Owner: (none)
Type: New feature | Status: new
Component: Migrations | Version: 5.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+------------------------------------
Changes (by Sarah Boyce):

* stage: Unreviewed => Accepted
* summary: Generated Field with TruncDate and tzinfo => Add support for
serializing zoneinfo.ZoneInfo objects in migrations
* type: Bug => New feature

Comment:

As `zoneinfo.ZoneInfo` objects are not supported in migrations (see docs:
https://docs.djangoproject.com/en/dev/topics/migrations/#migration-
serializing), I have classed this as a new feature rather than a bug
--
Ticket URL: <https://code.djangoproject.com/ticket/36265#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages