mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	- Only list labels which are enabled - Allows labels to be hidden / disabled without being deleted
		
			
				
	
	
		
			15 lines
		
	
	
		
			315 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			315 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# -*- coding: utf-8 -*-
 | 
						|
from __future__ import unicode_literals
 | 
						|
 | 
						|
from django.contrib import admin
 | 
						|
 | 
						|
from .models import StockItemLabel
 | 
						|
 | 
						|
 | 
						|
class StockItemLabelAdmin(admin.ModelAdmin):
 | 
						|
 | 
						|
    list_display = ('name', 'description', 'label', 'filters', 'enabled')
 | 
						|
 | 
						|
 | 
						|
admin.site.register(StockItemLabel, StockItemLabelAdmin)
 |