#24566 closed Bug (fixed)
MigrationWriter doesn't serialize timedelta
Reported by: | Marten Kenbeek | Owned by: | nobody |
---|---|---|---|
Component: | Migrations | Version: | 1.8 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
makemigrations
fails when using a timedelta
object as a default value for a model field.
As the docs explicitly state that the new DurationField
is "modeled in Python by timedelta
", I'm categorizing this as a bug in 1.8 rather than a new feature.
Change History (5)
comment:1 by , 10 years ago
Severity: | Normal → Release blocker |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 10 years ago
Has patch: | set |
---|
comment:3 by , 10 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR here: https://github.com/django/django/pull/4435