summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2017-01-10 12:30:10 +0100
committerTim Graham <timograham@gmail.com>2017-01-10 11:38:27 -0500
commit6872ce226602555d4566902a5b627ad08acdec94 (patch)
tree5bf017d62e053d393282da3ec0f7d0102f05f218 /django/forms
parent95f434e2b90b4fe4f0c933cdc987e3e165d713ff (diff)
Fixed #27712 -- Reallowed Input widget's attrs argument to set the input type.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/widgets.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index 4f028d34ad..801067ee38 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -268,6 +268,7 @@ class Input(Widget):
def __init__(self, attrs=None):
if attrs is not None:
+ attrs = attrs.copy()
self.input_type = attrs.pop('type', self.input_type)
super(Input, self).__init__(attrs)