InvenTree/InvenTree/label/admin.py

17 lines
423 B
Python
Raw Normal View History

2020-08-15 23:29:45 +00:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
2020-08-15 23:28:12 +00:00
from django.contrib import admin
from .models import StockItemLabel, StockLocationLabel, PartLabel
2020-08-15 23:29:45 +00:00
2021-01-08 12:08:00 +00:00
class LabelAdmin(admin.ModelAdmin):
2020-08-15 23:29:45 +00:00
list_display = ('name', 'description', 'label', 'filters', 'enabled')
2020-08-15 23:29:45 +00:00
2021-01-08 12:08:00 +00:00
admin.site.register(StockItemLabel, LabelAdmin)
admin.site.register(StockLocationLabel, LabelAdmin)
admin.site.register(PartLabel, LabelAdmin)