diff --git a/InvenTree/common/admin.py b/InvenTree/common/admin.py index c2da1ddd63..1eda18e869 100644 --- a/InvenTree/common/admin.py +++ b/InvenTree/common/admin.py @@ -5,7 +5,7 @@ from django.contrib import admin from import_export.admin import ImportExportModelAdmin -from .models import InvenTreeSetting +from .models import InvenTreeSetting, InvenTreeUserSetting class SettingsAdmin(ImportExportModelAdmin): @@ -13,4 +13,10 @@ class SettingsAdmin(ImportExportModelAdmin): list_display = ('key', 'value') +class UserSettingsAdmin(ImportExportModelAdmin): + + list_display = ('key', 'value', 'user', ) + + admin.site.register(InvenTreeSetting, SettingsAdmin) +admin.site.register(InvenTreeUserSetting, UserSettingsAdmin)