Opened 8 years ago

Last modified 8 years ago

#25812 closed Bug

Cannot use custom formats after security fix in 1.8.7 (regression) — at Initial Version

Reported by: Gagaro Owned by: nobody
Component: Internationalization Version: 1.8
Severity: Release blocker Keywords: formats
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Before the security fix in 1.8.7, we could have custom formats in formats.py files and used them. For example, if I have the following formats.py:

CUSTOM_DAY_FORMAT = 'd/m/Y CUSTOM'

I could used it:

>>> get_format('CUSTOM_DAY_FORMAT')
'd/m/Y CUSTOM'

But now it returns 'CUSTOM_DAY_FORMAT' instead. I know where the problem is and how to fix it, I should have a PR ready in a few hours with a test and the fix.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top