diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index dd5868f..891fe34 100644
a
|
b
|
class CheckboxInput(Widget):
|
482 | 482 | if value not in ('', True, False, None): |
483 | 483 | # Only add the 'value' attribute if a value is non-empty. |
484 | 484 | final_attrs['value'] = force_unicode(value) |
| 485 | final_attrs['class'] = final_attrs.get('class', '') + ' checkbox' |
485 | 486 | return mark_safe(u'<input%s />' % flatatt(final_attrs)) |
486 | 487 | |
487 | 488 | def value_from_datadict(self, data, files, name): |
… |
… |
class RadioInput(StrAndUnicode):
|
630 | 631 | final_attrs = dict(self.attrs, type='radio', name=self.name, value=self.choice_value) |
631 | 632 | if self.is_checked(): |
632 | 633 | final_attrs['checked'] = 'checked' |
| 634 | final_attrs['class'] = final_attrs.get('class', '') + ' radio' |
633 | 635 | return mark_safe(u'<input%s />' % flatatt(final_attrs)) |
634 | 636 | |
635 | 637 | class RadioFieldRenderer(StrAndUnicode): |