add: add invalid product update api

This commit is contained in:
behruz-dev
2025-08-27 16:19:35 +05:00
parent 992fdf8390
commit 4e5627477f
3 changed files with 36 additions and 2 deletions

View File

@@ -82,4 +82,13 @@ class InvliadProductListSerializer(serializers.ModelSerializer):
return {
'id': obj.wherehouse.id,
'name': obj.wherehouse.name
} if obj.wherehouse else None
} if obj.wherehouse else None
class InvalidProductUpdateSerializer(serializers.ModelSerializer):
class Meta:
model = InvalidProduct
fields = [
'project_folder', 'witnesses', 'work', 'amount', 'invalid_status', 'status',
'created_date', 'expiry_date', 'comment', 'file'
]