Quick fix :(
[redakcja.git] / project / templates / manager / pull_request.html
index 9c23436..c902da9 100644 (file)
@@ -35,7 +35,7 @@
             
 
             $.ajax({
             
 
             $.ajax({
-                url: "http://localhost:8000/api/pull-requests/" + id,
+                url: '{% url pullrequest_list  %}/'+id,
                 data: {action: 'accept'},
                 dataType: 'json',
                 type: 'PUT',
                 data: {action: 'accept'},
                 dataType: 'json',
                 type: 'PUT',