orders: add new field to party detail serializer

This commit is contained in:
behruz-dev
2025-11-10 15:38:14 +05:00
parent 1cd005c804
commit 3f8f3275bd

View File

@@ -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']: