Skip to content

Commit

Permalink
Removed deprecated en_format helper function.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Apr 2, 2011
1 parent eea43f2 commit 8db51a7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions django/forms/fields.py
Expand Up @@ -43,16 +43,6 @@
'TypedChoiceField', 'TypedMultipleChoiceField'
)

def en_format(name):
"""
Helper function to stay backward compatible.
"""
from django.conf.locale.en import formats
warnings.warn(
"`django.forms.fields.DEFAULT_%s` is deprecated; use `django.utils.formats.get_format('%s')` instead." % (name, name),
DeprecationWarning
)
return getattr(formats, name)

DEFAULT_DATE_INPUT_FORMATS = lazy(lambda: en_format('DATE_INPUT_FORMATS'), tuple, list)()
DEFAULT_TIME_INPUT_FORMATS = lazy(lambda: en_format('TIME_INPUT_FORMATS'), tuple, list)()
Expand Down

0 comments on commit 8db51a7

Please sign in to comment.