mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #27712 -- Reallowed Input widget's attrs argument to set the input type.
Regression in b52c73008a.
This commit is contained in:
committed by
Tim Graham
parent
95f434e2b9
commit
6872ce2266
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user