Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit abc1e92d852940a24c4343a7969bd381bb432fe0 1 parent 1226541
Jannis Leidel authored

Showing 1 changed file with 5 additions and 11 deletions. Show diff stats Hide diff stats

  1. 16  django/forms/fields.py
16  django/forms/fields.py
@@ -26,16 +26,14 @@
26 26
 from django.core.validators import EMPTY_VALUES
27 27
 
28 28
 from util import ErrorList
29  
-from widgets import TextInput, PasswordInput, HiddenInput, MultipleHiddenInput, \
30  
-        ClearableFileInput, CheckboxInput, Select, NullBooleanSelect, SelectMultiple, \
31  
-        DateInput, DateTimeInput, TimeInput, SplitDateTimeWidget, SplitHiddenDateTimeWidget, \
32  
-        FILE_INPUT_CONTRADICTION
  29
+from widgets import (TextInput, PasswordInput, HiddenInput,
  30
+    MultipleHiddenInput, ClearableFileInput, CheckboxInput, Select,
  31
+    NullBooleanSelect, SelectMultiple, DateInput, DateTimeInput, TimeInput,
  32
+    SplitDateTimeWidget, SplitHiddenDateTimeWidget, FILE_INPUT_CONTRADICTION)
33 33
 
34 34
 __all__ = (
35 35
     'Field', 'CharField', 'IntegerField',
36  
-    'DEFAULT_DATE_INPUT_FORMATS', 'DateField',
37  
-    'DEFAULT_TIME_INPUT_FORMATS', 'TimeField',
38  
-    'DEFAULT_DATETIME_INPUT_FORMATS', 'DateTimeField', 'TimeField',
  36
+    'DateField', 'TimeField', 'DateTimeField', 'TimeField',
39 37
     'RegexField', 'EmailField', 'FileField', 'ImageField', 'URLField',
40 38
     'BooleanField', 'NullBooleanField', 'ChoiceField', 'MultipleChoiceField',
41 39
     'ComboField', 'MultiValueField', 'FloatField', 'DecimalField',
@@ -44,10 +42,6 @@
44 42
 )
45 43
 
46 44
 
47  
-DEFAULT_DATE_INPUT_FORMATS = lazy(lambda: en_format('DATE_INPUT_FORMATS'), tuple, list)()
48  
-DEFAULT_TIME_INPUT_FORMATS = lazy(lambda: en_format('TIME_INPUT_FORMATS'), tuple, list)()
49  
-DEFAULT_DATETIME_INPUT_FORMATS = lazy(lambda: en_format('DATETIME_INPUT_FORMATS'), tuple, list)()
50  
-
51 45
 class Field(object):
52 46
     widget = TextInput # Default widget to use when rendering this type of Field.
53 47
     hidden_widget = HiddenInput # Default widget to use when rendering this as "hidden".

0 notes on commit abc1e92

Please sign in to comment.
Something went wrong with that request. Please try again.