mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
8f1af0f5f9
- 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)
|