Object history should reuse existing date formats, instead of implementing itself
Django has some date formats in trans_real.py that can be defined in translations, and used anywhere. Different formats exists such as DATE_FORMAT, DATETIME_FORMAT, TIME_FORMAT...
Object history template is using another format, that actually is (or should be) the same as DATETIME_FORMAT, called DATE_WITH_TIME_FULL.
I think that if the format is the same, it should be defined once, or if it isn't the same, it should be added to trans_real.py to allow usage in user's code.
Change History
(6)
milestone: |
→ 1.0
|
Triage Stage: |
Unreviewed → Design decision needed
|
Triage Stage: |
Design decision needed → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
patch for using existing format