Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.3.X] Fixed #15758 -- Removed stale constants that were missed in r…

…15983.

Backport from trunk (r16084).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16085 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5977193c018c1aff38cc3f8139798b027742550a 1 parent e87c9da
@jezdez jezdez authored
Showing with 5 additions and 11 deletions.
  1. +5 −11 django/forms/fields.py
View
16 django/forms/fields.py
@@ -26,16 +26,14 @@
from django.core.validators import EMPTY_VALUES
from util import ErrorList
-from widgets import TextInput, PasswordInput, HiddenInput, MultipleHiddenInput, \
- ClearableFileInput, CheckboxInput, Select, NullBooleanSelect, SelectMultiple, \
- DateInput, DateTimeInput, TimeInput, SplitDateTimeWidget, SplitHiddenDateTimeWidget, \
- FILE_INPUT_CONTRADICTION
+from widgets import (TextInput, PasswordInput, HiddenInput,
+ MultipleHiddenInput, ClearableFileInput, CheckboxInput, Select,
+ NullBooleanSelect, SelectMultiple, DateInput, DateTimeInput, TimeInput,
+ SplitDateTimeWidget, SplitHiddenDateTimeWidget, FILE_INPUT_CONTRADICTION)
__all__ = (
'Field', 'CharField', 'IntegerField',
- 'DEFAULT_DATE_INPUT_FORMATS', 'DateField',
- 'DEFAULT_TIME_INPUT_FORMATS', 'TimeField',
- 'DEFAULT_DATETIME_INPUT_FORMATS', 'DateTimeField', 'TimeField',
+ 'DateField', 'TimeField', 'DateTimeField', 'TimeField',
'RegexField', 'EmailField', 'FileField', 'ImageField', 'URLField',
'BooleanField', 'NullBooleanField', 'ChoiceField', 'MultipleChoiceField',
'ComboField', 'MultiValueField', 'FloatField', 'DecimalField',
@@ -54,10 +52,6 @@ def en_format(name):
)
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)()
-DEFAULT_DATETIME_INPUT_FORMATS = lazy(lambda: en_format('DATETIME_INPUT_FORMATS'), tuple, list)()
-
class Field(object):
widget = TextInput # Default widget to use when rendering this type of Field.
hidden_widget = HiddenInput # Default widget to use when rendering this as "hidden".
Please sign in to comment.
Something went wrong with that request. Please try again.