def METHOD_NAME(self, user_obj, obj):
    if not obj.pk:
        return []
    app_label = obj._meta.app_label
    user_obj_attr = '_%s_%d_object_perm_cache' % (
        app_label,
        obj.pk
    )
    if not hasattr(user_obj, user_obj_attr):
        content_type = ContentType.objects.get_for_model(obj)
        filters = {
            'content_type': content_type,
            'object_id': obj.pk,
            'user': user_obj
        }
        perms = ObjectPermission.objects.filter(**filters)
        user_obj._object_perm_cache = set([u"%s.%s.%s" % (p.object_id, p.content_type.app_label, p.codename) for p in perms])
        user_obj._object_perm_cache.update(self.get_group_object_permissions(user_obj, obj))
    return user_obj._object_perm_cache