mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
admin for user setting
This commit is contained in:
parent
449fc329c9
commit
e287860e10
@ -5,7 +5,7 @@ from django.contrib import admin
|
|||||||
|
|
||||||
from import_export.admin import ImportExportModelAdmin
|
from import_export.admin import ImportExportModelAdmin
|
||||||
|
|
||||||
from .models import InvenTreeSetting
|
from .models import InvenTreeSetting, InvenTreeUserSetting
|
||||||
|
|
||||||
|
|
||||||
class SettingsAdmin(ImportExportModelAdmin):
|
class SettingsAdmin(ImportExportModelAdmin):
|
||||||
@ -13,4 +13,10 @@ class SettingsAdmin(ImportExportModelAdmin):
|
|||||||
list_display = ('key', 'value')
|
list_display = ('key', 'value')
|
||||||
|
|
||||||
|
|
||||||
|
class UserSettingsAdmin(ImportExportModelAdmin):
|
||||||
|
|
||||||
|
list_display = ('key', 'value', 'user', )
|
||||||
|
|
||||||
|
|
||||||
admin.site.register(InvenTreeSetting, SettingsAdmin)
|
admin.site.register(InvenTreeSetting, SettingsAdmin)
|
||||||
|
admin.site.register(InvenTreeUserSetting, UserSettingsAdmin)
|
||||||
|
Loading…
Reference in New Issue
Block a user