def clean(self, value):
        value = super(TagField, self).clean(value)
        if value == '':
            return value
        for tag_name in parse_tag_input(value):
            if len(tag_name) > settings.MAX_TAG_LENGTH:
                raise forms.ValidationError(
                    _('Each tag may be no more than %s characters long.') %
                        settings.MAX_TAG_LENGTH)
        return value
dataset/ETHPy150Open amarandon/smeuhsocial/apps/tagging/forms.py/TagField.clean/original