@register.filter
def type_is(item, kind):
    if kind == 'string':
        return isinstance(item, basestring)
    if kind == 'boolean':
        return isinstance(item, bool)
    if kind == 'integer':
        return isinstance(item, int)
    if kind == 'float':
        return isinstance(item, float)
    if kind == 'array':
        return isinstance(item, list)
    if kind == 'dictionary':
        return isinstance(item, dict)
    return False
Returns the data type of the item (plist-style)
dataset/ETHPy150Open munki/munkiwebadmin/catalogs/templatetags/catalog_extras.py/type_is