add: add invalid product update api
This commit is contained in:
@@ -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'
|
||||
]
|
||||
Reference in New Issue
Block a user