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:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I'm not convinced
unique_for_date works with
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 3 years ago by
|Patch needs improvement:||unset|
|Status:||new → assigned|