Dear Rafael, Thank you for responding to my bug report. I'm sorry I didn't provide the full information you ask for, and based on your feedback I'm not sure whether this is a bug or not. It is certainly a user error, but the bug I'm hoping to raise is with the unhelpful diagnostics, rather than my own mistake.
I've provided more info below. I would be grateful if you could take a look and decide whether this qualifies as a bug - then based on your advice I will be happy to re-open the bug or not. Steps to reproduce the bug: - Define a model class as follows class Test(models.Model): testfield = models.TimeField(default=datetime.timedelta(0)) # I acknowledge this is a user error but it is accepted by Python, and by makemigration. = run makemigration (which works OK) and migrate (which fails, giving the output described above). Desired output: An error message from the migrate command, stating that a TypeError occurred setting a value to this field, with either model name/field name, or a source line number. Thanks again for your advice. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875596 Title: Django Timefield(default=<TimeDelta>) gives unhelpful diagnostics To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-django/+bug/1875596/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs