Investigate how unique_for_date works with DateTimeFields when USE_TZ is True
|Reported by:||aaugustin||Owned by:||aaugustin|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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 Changed 10 months ago by aaugustin
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Status changed from new to assigned
comment:3 Changed 6 months ago by Aymeric Augustin <aymeric.augustin@…>
- Resolution set to fixed
- Status changed from assigned to closed