Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed deprecated en_format helper function.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8db51a70dad5b5f30232237e9883fa2504bf4d49 1 parent eea43f2
@freakboy3742 freakboy3742 authored
Showing with 0 additions and 10 deletions.
  1. +0 −10 django/forms/fields.py
View
10 django/forms/fields.py
@@ -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)()
Please sign in to comment.
Something went wrong with that request. Please try again.