@login_required
def project_resync_webhook(request, project_slug):
 project = get_object_or_404(Project.objects.for_admin_user(request.user), slug=project_slug)
 if (request.method == 'POST'):
  attach_webhook(project=project, request=request)
  return HttpResponseRedirect(reverse('projects_detail', args=[project.slug]))
 return render_to_response('projects/project_resync_webhook.html', {'project': project}, context_instance=RequestContext(request))

@ login_required def project_resync_webhook ( request , project_slug ) : project = get_object_or_404 ( Project . objects . for_admin_user ( request . user ) , slug = project_slug ) if ( request . method == 'POST' ) : attach_webhook ( project = project , request = request ) return HttpResponseRedirect ( reverse ( 'projects_detail' , args = [ project . slug ] ) ) return render_to_response ( 'projects/project_resync_webhook.html' , { 'project' : project } , context_instance = RequestContext ( request ) )
resync a project webhook .