#23316 closed New feature (fixed)
Supported 'datetime.time' in migrations
Reported by: | Sanghyuck Lee | Owned by: | Sanghyuck Lee |
---|---|---|---|
Component: | Migrations | Version: | dev |
Severity: | Normal | Keywords: | migrations datetime time |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I found migrations does supports datetime.datime and datetime.date but not datetime.time.
example:
class TestModel(models.Model): open_time = models.TimeField(default=datetime.time(11, 0)) # Error
So I create datetime.time support patch and attach here. (Github Pull Request)
Change History (4)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Status: | new → assigned |
---|
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/3084