def has_delete_permission(self, request, obj_or_class):
        def has_perm(o):
            codename = get_permission_codename('delete', o._meta)
            return request.user.has_perm((o._meta.app_label, codename) % '%s.%s')

        if isinstance(obj_or_class, type):
            return has_perm(obj_or_class)
        else:
            return all(has_perm(o) for o in obj_or_class.depth_first_order())

    # These must return the same instance throughout the whole lifetime
    # of the widgy site for reverse to work.
dataset/ETHPy150Open fusionbox/django-widgy/widgy/site.py/WidgySite.has_delete_permission/swapped operands of `%`