From: Ɓukasz Rekucki Date: Thu, 8 Oct 2009 15:30:59 +0000 (+0200) Subject: Quick fix :( X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/06029c3c9c71944220bd93bb600b5a127282fce4 Quick fix :( --- 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',