summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms/widgets.py')
-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)