mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +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:
		@@ -106,21 +106,9 @@ class PartAttachmentSerializer(InvenTreeAttachmentSerializer):
 | 
			
		||||
        """Metaclass defining serializer fields"""
 | 
			
		||||
        model = PartAttachment
 | 
			
		||||
 | 
			
		||||
        fields = [
 | 
			
		||||
            'pk',
 | 
			
		||||
        fields = InvenTreeAttachmentSerializer.attachment_fields([
 | 
			
		||||
            'part',
 | 
			
		||||
            'attachment',
 | 
			
		||||
            'filename',
 | 
			
		||||
            'link',
 | 
			
		||||
            'comment',
 | 
			
		||||
            'upload_date',
 | 
			
		||||
            'user',
 | 
			
		||||
            'user_detail',
 | 
			
		||||
        ]
 | 
			
		||||
 | 
			
		||||
        read_only_fields = [
 | 
			
		||||
            'upload_date',
 | 
			
		||||
        ]
 | 
			
		||||
        ])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class PartTestTemplateSerializer(InvenTreeModelSerializer):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user