@receiver(project_import)
def handle_project_import(sender, **kwargs):
 project = sender
 request = kwargs.get('request')
 attach_webhook(project=project, request=request)

@ receiver ( project_import ) def handle_project_import ( sender , ** kwargs ) : project = sender request = kwargs . get ( 'request' ) attach_webhook ( project = project , request = request )
add post-commit hook on project import .