def __init__(self, *args, **kwargs):
        kwargs['max_length'] = kwargs.get('max_length', 50)
        # Set db_index=True unless it's been set manually.
        if 'db_index' not in kwargs:
            kwargs['db_index'] = True
        super(SmileyCodeField, self).__init__(*args, **kwargs)


# Allow South to handle those fields smoothly
dataset/ETHPy150Open ellmetha/django-precise-bbcode/precise_bbcode/fields.py/SmileyCodeField.__init__/original