def web_hooks(self, include_global=True):
        from fabric_bolt.web_hooks.models import Hook
        ors = [Q(project=self)]

        if include_global:
            ors.append(Q(project=None))

        hooks = Hook.objects.filter(reduce(operator.or_, ors))

        return hooks
Get all web hooks for this project. Includes global hooks.
dataset/ETHPy150Open fabric-bolt/fabric-bolt/fabric_bolt/projects/models.py/Project.web_hooks