2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 02:25:38 +00:00

Add serializer / table display

This commit is contained in:
Oliver Walters
2020-05-18 19:15:40 +10:00
parent fc6cad475a
commit 2f6d03388d
2 changed files with 34 additions and 6 deletions

View File

@ -62,14 +62,20 @@ class PartTestTemplateSerializer(InvenTreeModelSerializer):
Serializer for the PartTestTemplate class
"""
key = serializers.CharField(read_only=True)
class Meta:
model = PartTestTemplate
fields = [
'pk',
'key',
'part',
'test_name',
'required'
'description',
'required',
'requires_value',
'requires_attachment',
]