def _split_categories(value):
    """Splits the categories on comma. Returns a list of categories or if
    there is one category named 'none' returns an empty list."""
    categories = [c.strip() for c in value.split(',')]
    if len(categories) == 1 and categories[0].lower() == 'none':
        return []
    return categories