Display datetime.date values using DATE_FORMAT
|Reported by:||Beuc||Owned by:||aaugustin|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The list view in django.contrib.admin uses settings.DATE_FORMAT for DateField's.
However it doesn't for datetime.date results (e.g. when a custom Model function returns a date): it uses the YYYY-MM-DD format (aka __str__()).
I think it would make sense to display Python dates in the admin interface using the l10n settings.
(same question for datetime/DATETIME_FORMAT)
What do you think?
Change History (7)
comment:1 Changed 4 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
comment:6 Changed 2 years ago by aaugustin
- Easy pickings unset
- Owner changed from nobody to aaugustin