13 lines
292 B
Python
13 lines
292 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.contrib import admin
|
|
|
|
from .models import LogEntry
|
|
|
|
|
|
@admin.register(LogEntry)
|
|
class LogEntryAdmin(admin.ModelAdmin):
|
|
date_hierarchy = 'datetime'
|
|
list_display = ('datetime', 'message')
|
|
readonly_fields = ('datetime', 'message')
|