From 06029c3c9c71944220bd93bb600b5a127282fce4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Thu, 8 Oct 2009 17:30:59 +0200 Subject: [PATCH] Quick fix :( --- apps/api/urls.py | 2 +- project/templates/manager/pull_request.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/urls.py b/apps/api/urls.py index d22d595a..5464374f 100644 --- a/apps/api/urls.py +++ b/apps/api/urls.py @@ -30,7 +30,7 @@ urlpatterns = patterns('', # Pull requests url(r"^pull-requests$", pullrequest_collection, - {'emitter_format': 'json'} ), + {'emitter_format': 'json'}, name="pullrequest_list" ), url(r"^pull-requests/(?P\d+)$", pullrequest_rsrc, {'emitter_format': 'json'}, name="pullrequest_view" ), diff --git a/project/templates/manager/pull_request.html b/project/templates/manager/pull_request.html index 9c234366..c902da98 100644 --- a/project/templates/manager/pull_request.html +++ b/project/templates/manager/pull_request.html @@ -35,7 +35,7 @@ $.ajax({ - url: "http://localhost:8000/api/pull-requests/" + id, + url: '{% url pullrequest_list %}/'+id, data: {action: 'accept'}, dataType: 'json', type: 'PUT', -- 2.20.1