Commit 6b70e76a authored by HEVELINE Thomas's avatar HEVELINE Thomas

Correction relecture MR

parent 2d049728
......@@ -15,7 +15,7 @@ window.addEventListener("load", function (e) {
queryJson(document.location, {
message: "begin-delivery",
id: id,
}, cb, "OPTIONS");
}, cb, "POST");
});
}
});
......@@ -37,7 +37,7 @@ window.addEventListener("load", function (e) {
queryJson(document.location, {
message: "stop-delivery",
id: id,
}, cb, "OPTIONS");
}, cb, "POST");
});
}
});
......@@ -71,7 +71,8 @@ window.addEventListener("load", function (e) {
queryJson(listProvider, {
message: "see-orders",
id: id,
}, this.populate.bind(this));
}, this.populate.bind(this),
'POST');
};
SeeOrdersList.prototype = Object.create(TableList.prototype, {
......
......@@ -88,7 +88,7 @@ class ItemListViewTest(ItemTestCase, UserTestCase):
self.assertContains(resp, shown_item.name)
self.assertContains(resp, no_bargain_item.name)
self.assertNotContains(resp, hidden_item.name)
self.assertNotContains(resp, "prix cotisant")
self.assertContains(resp, "prix cotisant :")
# Logged in, not contributor
self.client.force_login(self.user)
......@@ -574,3 +574,4 @@ class DeliveryViewTest(PaymentTestCase, OrderItemTestCase):
self.assertEqual(qs.count(), 3)
self.assertIn(paid_ordered_partial_oi, qs.all())
self.assertIn(paid_ordered_undelivered_oi, qs.all())
self.assertIn(paid_ordered_delivered_oi, qs.all())
......@@ -212,7 +212,7 @@ class ItemManageView(PermissionRequiredMixin, ListView):
template_name = "boutique/item_manage.html"
permission_required = "boutique.management"
def options(self, request: HttpRequest, *args, **kwargs) -> JsonResponse:
def post(self, request: HttpRequest, *args, **kwargs) -> JsonResponse:
req = json.loads(request.read().decode())
pk = req.get("id")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment