Update 'required' status for new serializers

(cherry picked from commit 2306e29743eb25266c78bec5357d1194e0778c58)
This commit is contained in:
Oliver Walters
2020-05-26 20:29:09 +10:00
parent 81e38eeb14
commit e128410d54
3 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -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