mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add admin for NotificationUserSetting
This commit is contained in:
parent
34855bbb37
commit
0ff407348d
@ -70,4 +70,19 @@ class PluginConfigAdmin(admin.ModelAdmin):
|
|||||||
inlines = [PluginSettingInline, ]
|
inlines = [PluginSettingInline, ]
|
||||||
|
|
||||||
|
|
||||||
|
class NotificationUserSettingAdmin(admin.ModelAdmin):
|
||||||
|
"""
|
||||||
|
Admin class for NotificationUserSetting
|
||||||
|
"""
|
||||||
|
|
||||||
|
model = models.NotificationUserSetting
|
||||||
|
|
||||||
|
read_only_fields = [
|
||||||
|
'key',
|
||||||
|
]
|
||||||
|
|
||||||
|
def has_add_permission(self, request):
|
||||||
|
return False
|
||||||
|
|
||||||
admin.site.register(models.PluginConfig, PluginConfigAdmin)
|
admin.site.register(models.PluginConfig, PluginConfigAdmin)
|
||||||
|
admin.site.register(models.NotificationUserSetting, NotificationUserSettingAdmin)
|
||||||
|
Loading…
Reference in New Issue
Block a user