mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
Update 'required' status for new serializers
(cherry picked from commit 2306e29743eb25266c78bec5357d1194e0778c58)
This commit is contained in:
@ -114,7 +114,7 @@ class POAttachmentSerializer(InvenTreeModelSerializer):
|
||||
Serializers for the PurchaseOrderAttachment model
|
||||
"""
|
||||
|
||||
attachment = InvenTreeAttachmentSerializerField()
|
||||
attachment = InvenTreeAttachmentSerializerField(required=True)
|
||||
|
||||
class Meta:
|
||||
model = PurchaseOrderAttachment
|
||||
@ -259,7 +259,7 @@ class SOAttachmentSerializer(InvenTreeModelSerializer):
|
||||
Serializers for the SalesOrderAttachment model
|
||||
"""
|
||||
|
||||
attachment = InvenTreeAttachmentSerializerField()
|
||||
attachment = InvenTreeAttachmentSerializerField(required=True)
|
||||
|
||||
class Meta:
|
||||
model = SalesOrderAttachment
|
||||
|
Reference in New Issue
Block a user