2021-07-08 11:07:33 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2022-01-12 12:56:22 +01:00
|
|
|
from user.models import UserNotification, UserActionLogEntry, User
|
2021-07-08 17:23:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
class UserNotificationAdmin(admin.ModelAdmin):
|
|
|
|
list_display = [
|
|
|
|
"id",
|
|
|
|
"name",
|
|
|
|
"is_active",
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2022-01-12 12:56:22 +01:00
|
|
|
class UserAdmin(admin.ModelAdmin):
|
2021-07-08 17:23:06 +02:00
|
|
|
list_display = [
|
2022-01-12 12:56:22 +01:00
|
|
|
"id",
|
|
|
|
"username",
|
|
|
|
"first_name",
|
|
|
|
"last_name",
|
|
|
|
"email",
|
2021-07-08 17:23:06 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2021-07-29 15:49:19 +02:00
|
|
|
class UserActionLogEntryAdmin(admin.ModelAdmin):
|
|
|
|
list_display = [
|
|
|
|
"id",
|
|
|
|
"user",
|
|
|
|
"timestamp",
|
|
|
|
"action",
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2021-07-08 17:23:06 +02:00
|
|
|
admin.site.register(UserNotification, UserNotificationAdmin)
|
2022-01-12 12:56:22 +01:00
|
|
|
admin.site.register(UserActionLogEntry, UserActionLogEntryAdmin)
|
|
|
|
admin.site.register(User, UserAdmin)
|