#20409 closed Cleanup/optimization (fixed)
Investigate how unique_for_date works with DateTimeFields when USE_TZ is True
Reported by: | Aymeric Augustin | Owned by: | Aymeric Augustin |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm not convinced unique_for_date
works with DateTimeField
when USE_TZ = True
.
In general I'm highly skeptical of APIs that accept dates or datetimes indifferently; they don't work well in a timezone-aware world.
Change History (4)
comment:1 by , 12 years ago
Status: | new → assigned |
---|
comment:2 by , 11 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
In e192739b3e3209a371a5d0f5f05fd083e88259f2: