orders: add new field to party detail serializer
This commit is contained in:
@@ -152,6 +152,7 @@ class PartyChangeStatusToIsMadeApiView(generics.GenericAPIView):
|
||||
return Response({"success": False, "message": serializer.errors}, status=400)
|
||||
party = get_object_or_404(Party, id=party_id)
|
||||
party.status = 'PARTY_IS_MADE'
|
||||
party.closed_date = now().date()
|
||||
party.save()
|
||||
data = serializer.validated_data
|
||||
for item in data['product']:
|
||||
|
||||
Reference in New Issue
Block a user