klipstein/dojango — Issue #62: 62 - Stale version of TIME_INPUT_FORMATS used by dojango.form.fields.TimeField 
Author: klipstein
Created: 2011-11-06 13:02:44+00:00
State: closed

Reason:
Dojango overwrites dj_settings.TIME_INPUT_FORMATS, but doesn't clear cache "_format_cache" of django.utils.formats.get_format().

Details:
If get_format(TIME_INPUT_FORMATS) is called before D-o-jango overwrites dj_settings.TIME_INPUT_FORMATS, "_format_cache" is filled with Django default value, and this value is returned for every subsequent call of get_format(TIME_INPUT_FORMATS), no matter what actual settings value will be at calling time.

What version of the product are you using? On what operating system?

Django trunk, Dojango 0.5.1 final

Original link: http://code.google.com/p/dojango/issues/detail?id=62