Add a "completed" field to the Build model

- Keeps track of how many outputs have been produced
- Will not be directly editable by the user
This commit is contained in:
Oliver Walters committed 2020-10-20 23:59:37 +11:00
1 parent fd6d630037
commit e02536071d
7 files changed
+183 -124

No files matched your search

+3 -1
View File
@@ -38,6 +38,7 @@ class BuildSerializer(InvenTreeModelSerializer):
'url',
'title',
'creation_date',
'completed',
'completion_date',
'part',
'part_detail',
@@ -51,9 +52,10 @@ class BuildSerializer(InvenTreeModelSerializer):
]
read_only_fields = [
'status',
'completed',
'creation_date',
'completion_data',
'status',
'status_text',
]