From abc1e92d852940a24c4343a7969bd381bb432fe0 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 22 Apr 2011 12:27:58 +0000 Subject: [PATCH] Fixed #15758 -- Removed stale constants that were missed in r15983. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16084 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/forms/fields.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/django/forms/fields.py b/django/forms/fields.py index c61fca13c65..1df935b1a1a 100644 --- a/django/forms/fields.py +++ b/django/forms/fields.py @@ -26,16 +26,14 @@ from django.utils.functional import lazy 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', @@ -44,10 +42,6 @@ __all__ = ( ) -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".