(text)
Validates form input for tags
Validates form input for tags
Validates form input for tags
def valid_tag(text):
    "Validates form input for tags"

    words = text.split(",")
    if len(words) > MAX_TAGS:
        raise ValidationError('You have too many tags (5 allowed)')
def valid_tag ( text ) : words = text . split ( "," ) if len ( words ) > MAX_TAGS : raise ValidationError ( 'You have too many tags (5 allowed)' )