var row = $('#request-' +id);
$.ajax({
- url: "http://localhost:8000/api/pull-requests/" + id,
+ url: '{% url pullrequest_list %}/'+id,
dataType: 'json',
type: 'GET',
success: function(data) {
$.ajax({
- url: '{% url pullrequest_list %}/'+id,
+ url: '{% url pullrequest_list %}/'+id,
data: {action: 'accept'},
dataType: 'json',
type: 'PUT',