2021-07-08 11:07:33 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2021-07-08 17:23:06 +02:00
|
|
|
from user.models import UserNotification, KonovaUserExtension
|
|
|
|
|
|
|
|
|
|
|
|
class UserNotificationAdmin(admin.ModelAdmin):
|
|
|
|
list_display = [
|
|
|
|
"id",
|
|
|
|
"name",
|
|
|
|
"is_active",
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
class KonovaUserExtensionAdmin(admin.ModelAdmin):
|
|
|
|
list_display = [
|
|
|
|
"user",
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(UserNotification, UserNotificationAdmin)
|
|
|
|
admin.site.register(KonovaUserExtension, KonovaUserExtensionAdmin)
|