

def __init__(self, field, prepended_text=None, appended_text=None, *args, **kwargs):
    self.field = field
    self.appended_text = appended_text
    self.prepended_text = prepended_text
    if ('active' in kwargs):
        self.active = kwargs.pop('active')
    self.input_size = None
    css_class = kwargs.get('css_class', '')
    if ('input-lg' in css_class):
        self.input_size = 'input-lg'
    if ('input-sm' in css_class):
        self.input_size = 'input-sm'
    super(PrependedAppendedText, self).__init__(field, *args, **kwargs)

dataset/ETHPy150Open maraujop/django-crispy-forms/crispy_forms/bootstrap.py PrependedAppendedText.__init__/original