butler_ddochi/mm_msg/admin.py
icurfer ea11832a53
Some checks failed
Build And Test / build-and-push (push) Failing after 53s
init
2024-12-13 17:12:03 +09:00

12 lines
496 B
Python

from django.contrib import admin
from .models import Message
admin.site.register(Message)
# @admin.register(Message)
# class MessageAdmin(admin.ModelAdmin):
# list_display = ('text', 'send_time', 'created_at') # 목록에 표시될 필드
# search_fields = ('text',) # 검색 가능한 필드
# list_filter = ('send_time', 'created_at') # 필터링 가능한 필드
# ordering = ('-send_time',) # 정렬 기준
# readonly_fields = ('created_at',) # 읽기 전용 필드