'Enforce minimum length for name.'

def validate_name(self, new_name):

    if (len(new_name) < NAME_MIN_LENGTH):
        raise serializers.ValidationError('The    name    field    must    be    at    least    {}    characters    long.'.format(NAME_MIN_LENGTH))
    return new_name
