4647be958b
* adds UserActionLogEntry model to user/models.py * wraps user and timestamp info * can be extended for more information in the future * refactors all filtering and accessing on values
31 lines
679 B
Python
31 lines
679 B
Python
from django.contrib import admin
|
|
|
|
from user.models import UserNotification, KonovaUserExtension, UserActionLogEntry
|
|
|
|
|
|
class UserNotificationAdmin(admin.ModelAdmin):
|
|
list_display = [
|
|
"id",
|
|
"name",
|
|
"is_active",
|
|
]
|
|
|
|
|
|
class KonovaUserExtensionAdmin(admin.ModelAdmin):
|
|
list_display = [
|
|
"user",
|
|
]
|
|
|
|
|
|
class UserActionLogEntryAdmin(admin.ModelAdmin):
|
|
list_display = [
|
|
"id",
|
|
"user",
|
|
"timestamp",
|
|
"action",
|
|
]
|
|
|
|
|
|
admin.site.register(UserNotification, UserNotificationAdmin)
|
|
admin.site.register(KonovaUserExtension, KonovaUserExtensionAdmin)
|
|
admin.site.register(UserActionLogEntry, UserActionLogEntryAdmin) |