* Fixed cdek orders API
This commit is contained in:
parent
fb5a80f0b4
commit
a37fe8c851
|
|
@ -390,7 +390,7 @@ class CDEKAPI(viewsets.GenericViewSet):
|
|||
r = self.client.get_order_info(im_number)
|
||||
return Response(r.json())
|
||||
|
||||
@action(url_path='orders', detail=False, methods=['post'])
|
||||
@get_order_info.mapping.post
|
||||
def create_order(self, request, *args, **kwargs):
|
||||
order_data = request.data
|
||||
if not order_data:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user