class PrettyCheckboxField(BooleanField):
    widget = PrettyCheckboxWidget

def __init__(self, *args, **kwargs):
    if kwargs['label']:
        kwargs['widget'].attrs['prettycheckbox-label'] = kwargs['label']
kwargs['label'] = ''
super(PrettyCheckboxField, self).__init__(*args, **kwargs)


class MyForm(forms.Form):
    my_boolean = PrettyCheckboxField(label=_('Some label'), widget=
        PrettyCheckboxWidget())
How do I create a Django form that displays a checkbox label to the right of the checkbox?