mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	Fixes #4950: Include inventory item label in API serializer, UI view
This commit is contained in:
		@@ -640,8 +640,8 @@ class InventoryItemSerializer(TaggedObjectSerializer, ValidatedModelSerializer):
 | 
			
		||||
    class Meta:
 | 
			
		||||
        model = InventoryItem
 | 
			
		||||
        fields = [
 | 
			
		||||
            'id', 'url', 'device', 'parent', 'name', 'manufacturer', 'part_id', 'serial', 'asset_tag', 'discovered',
 | 
			
		||||
            'description', 'tags',
 | 
			
		||||
            'id', 'url', 'device', 'parent', 'name', 'label', 'manufacturer', 'part_id', 'serial', 'asset_tag',
 | 
			
		||||
            'discovered', 'description', 'tags',
 | 
			
		||||
        ]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -30,6 +30,10 @@
 | 
			
		||||
                        <td>Name</td>
 | 
			
		||||
                        <td>{{ instance.name }}</td>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <td>Label</td>
 | 
			
		||||
                        <td>{{ instance.label|placeholder }}</td>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <td>Manufacturer</td>
 | 
			
		||||
                        <td>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user