diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py
index 884171b..f45ff36 100644
a
|
b
|
class RelatedFieldWidgetWrapper(forms.Widget):
|
210 | 210 | return self.widget.id_for_label(id_) |
211 | 211 | |
212 | 212 | class AdminTextareaWidget(forms.Textarea): |
213 | | def __init__(self, attrs={}): |
214 | | super(AdminTextareaWidget, self).__init__(attrs={'class': 'vLargeTextField'}) |
| 213 | def __init__(self, attrs=None): |
| 214 | final_attrs = {'class': 'vLargeTextField'} |
| 215 | if attrs is not None: |
| 216 | final_attrs.update(attrs) |
| 217 | super(AdminTextareaWidget, self).__init__(attrs=final_attrs}) |
215 | 218 | |
216 | 219 | class AdminTextInputWidget(forms.TextInput): |
217 | | def __init__(self, attrs={}): |
218 | | super(AdminTextInputWidget, self).__init__(attrs={'class': 'vTextField'}) |
| 220 | def __init__(self, attrs=None): |
| 221 | final_attrs = {'class': 'vTextField'} |
| 222 | if attrs is not None: |
| 223 | final_attrs.update(attrs) |
| 224 | super(AdminTextInputWidget, self).__init__(attrs=final_attrs) |
219 | 225 | |
220 | 226 | class AdminURLFieldWidget(forms.TextInput): |
221 | | def __init__(self, attrs={}): |
222 | | super(AdminURLFieldWidget, self).__init__(attrs={'class': 'vURLField'}) |
| 227 | def __init__(self, attrs=None): |
| 228 | final_attrs = {'class': 'vURLField'} |
| 229 | if attrs is not None: |
| 230 | final_attrs.update(attrs) |
| 231 | super(AdminURLFieldWidget, self).__init__(attrs=final_attrs) |
223 | 232 | |
224 | 233 | class AdminIntegerFieldWidget(forms.TextInput): |
225 | | def __init__(self, attrs={}): |
226 | | super(AdminIntegerFieldWidget, self).__init__(attrs={'class': 'vIntegerField'}) |
| 234 | def __init__(self, attrs=None): |
| 235 | final_attrs = {'class': 'vIntegerField'} |
| 236 | if attrs is not None: |
| 237 | final_attrs.update(attrs) |
| 238 | super(AdminIntegerFieldWidget, self).__init__(attrs=final_attrs) |