Add 'link' field to attachment serializer

This commit is contained in:
Oliver 2021-11-28 12:57:37 +11:00
parent e9ed7bffc9
commit 6582fd3d04
4 changed files with 5 additions and 0 deletions

View File

@ -525,6 +525,7 @@ class BuildAttachmentSerializer(InvenTreeAttachmentSerializer):
'pk', 'pk',
'build', 'build',
'attachment', 'attachment',
'link',
'filename', 'filename',
'comment', 'comment',
'upload_date', 'upload_date',

View File

@ -386,6 +386,7 @@ class POAttachmentSerializer(InvenTreeAttachmentSerializer):
'pk', 'pk',
'order', 'order',
'attachment', 'attachment',
'link',
'filename', 'filename',
'comment', 'comment',
'upload_date', 'upload_date',
@ -607,6 +608,7 @@ class SOAttachmentSerializer(InvenTreeAttachmentSerializer):
'order', 'order',
'attachment', 'attachment',
'filename', 'filename',
'link',
'comment', 'comment',
'upload_date', 'upload_date',
] ]

View File

@ -85,6 +85,7 @@ class PartAttachmentSerializer(InvenTreeAttachmentSerializer):
'part', 'part',
'attachment', 'attachment',
'filename', 'filename',
'link',
'comment', 'comment',
'upload_date', 'upload_date',
] ]

View File

@ -432,6 +432,7 @@ class StockItemAttachmentSerializer(InvenTree.serializers.InvenTreeAttachmentSer
'stock_item', 'stock_item',
'attachment', 'attachment',
'filename', 'filename',
'link',
'comment', 'comment',
'upload_date', 'upload_date',
'user', 'user',