mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-03 22:08:49 +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)
|