klipstein/dojango — Issue #59: 59 - DeprecationWarning: `django.forms.fields.DEFAULT_DATE_INPUT_FORMATS` is deprecated 
Author: klipstein
Created: 2011-11-06 13:02:06+00:00
State: open

Dojango uses Django-deprecated constant "django.forms.fields.DEFAULT_DATE_INPUT_FORMATS".

This warning is issued by Django code:
=============
DeprecationWarning: `django.forms.fields.DEFAULT_DATE_INPUT_FORMATS` is deprecated; use `django.utils.formats.get_format('DATE_INPUT_FORMATS')` instead
=============

...and the reason lives in following Dojango code (dojango/forms/fields.py:75):
=============
DEFAULT_DATE_INPUT_FORMATS = tuple(list(fields.DEFAULT_DATE_INPUT_FORMATS) + [
'%Y-%m-%dT%H:%M', '%Y-%m-%dT%H:%M:%S'
])
=============

What version of the product are you using? On what operating system?
Dojango - trunk, Django 1.2.3, python 2.6.5

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