2021-07-05 14:49:32 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2021-07-06 08:53:08 +02:00
|
|
|
from news.models import ServerMessage
|
2021-07-05 14:49:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
class ServerMessageAdmin(admin.ModelAdmin):
|
|
|
|
list_display = [
|
|
|
|
"id",
|
|
|
|
"subject",
|
|
|
|
"publish_on",
|
|
|
|
"is_active",
|
|
|
|
]
|
|
|
|
|
|
|
|
admin.site.register(ServerMessage, ServerMessageAdmin)
|