2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

Company attachment (#4346)

* Adds new model, API, serializers, etc

- Refactor InvenTreeAttachmentSerializer class
- Reduces code duplication

* Update front end

* Increment API version
This commit is contained in:
Oliver
2023-02-16 09:52:13 +11:00
committed by GitHub
parent f4bc65523c
commit 45d50fc618
14 changed files with 182 additions and 127 deletions

View File

@ -929,18 +929,6 @@ class BuildAttachmentSerializer(InvenTreeAttachmentSerializer):
"""Serializer metaclass"""
model = BuildOrderAttachment
fields = [
'pk',
fields = InvenTreeAttachmentSerializer.attachment_fields([
'build',
'attachment',
'link',
'filename',
'comment',
'upload_date',
'user',
'user_detail',
]
read_only_fields = [
'upload_date',
]
])