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
|
|
|
|
|
2021-07-08 12:10:10 +00:00
|
|
|
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
|
|
|
|
2020-08-22 23:07:15 +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)
|
2021-07-08 12:10:10 +00:00
|
|
|
admin.site.register(PartLabel, LabelAdmin)
|