'Label From Instance'

def label_from_instance(self, obj):

    name = unicode(obj)
    obj_type = obj.get_human_type()
    label = filters.do_truncate(filters.do_striptags(name), 30)
    if obj_type:
        label += (('    (' + obj_type) + ')')
    return label
