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 | default_attrs = {'class': 'vLargeTextField'} |
| 215 | if attrs is not None: |
| 216 | attrs = default_attrs |
| 217 | else: |
| 218 | default_attrs.update(attrs) |
| 219 | super(AdminTextareaWidget, self).__init__(attrs=default_attrs}) |
215 | 220 | |
216 | 221 | class AdminTextInputWidget(forms.TextInput): |
217 | | def __init__(self, attrs={}): |
218 | | super(AdminTextInputWidget, self).__init__(attrs={'class': 'vTextField'}) |
| 222 | def __init__(self, attrs=None): |
| 223 | default_attrs = {'class': 'vTextField'} |
| 224 | if attrs is not None: |
| 225 | default_attrs.update(attrs) |
| 226 | super(AdminTextInputWidget, self).__init__(attrs=default_attrs) |
219 | 227 | |
220 | 228 | class AdminURLFieldWidget(forms.TextInput): |
221 | | def __init__(self, attrs={}): |
222 | | super(AdminURLFieldWidget, self).__init__(attrs={'class': 'vURLField'}) |
| 229 | def __init__(self, attrs=None): |
| 230 | default_attrs = {'class': 'vURLField'} |
| 231 | if attrs is not None: |
| 232 | default_attrs.update(attrs) |
| 233 | super(AdminURLFieldWidget, self).__init__(attrs=default_attrs) |
223 | 234 | |
224 | 235 | class AdminIntegerFieldWidget(forms.TextInput): |
225 | | def __init__(self, attrs={}): |
226 | | super(AdminIntegerFieldWidget, self).__init__(attrs={'class': 'vIntegerField'}) |
227 | | No newline at end of file |
| 236 | def __init__(self, attrs=None): |
| 237 | default_attrs = {'class': 'vIntegerField'} |
| 238 | if attrs is not None: |
| 239 | default_attrs.update(attrs) |
| 240 | super(AdminIntegerFieldWidget, self).__init__(attrs=default_attrs) |