#24566 closed Bug (fixed)
MigrationWriter doesn't serialize timedelta
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