def __init__(self, *args, **kwargs):
    attrs = {}
    if kwargs.get('placeholder'):
        attrs['placeholder'] = kwargs.get('placeholder')
        del kwargs['placeholder']
    label = (kwargs.get('label') or '')
    if label:
        del kwargs['label']
    self.max_length = (kwargs.get('max_length') or None)
    super(forms.CharField, self).__init__(*args, label=label, widget=forms.TextInput(attrs=attrs), **kwargs)
def __init__(self, *args, **kwargs):
    attrs = {}
    if kwargs.get('placeholder'):
        attrs['placeholder'] = kwargs.get('placeholder')
        del kwargs['placeholder']
    label = (kwargs.get('label') or )
    if label:
        del kwargs['label']
    self.max_length = (kwargs.get('max_length') or None)
    super(forms.CharField, self).__init__(*args, label=label, widget=forms.TextInput(attrs=attrs), **kwargs)