mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
@@ -2,11 +2,13 @@ from django.contrib import admin
|
||||
|
||||
from .models import Event, Timestamp
|
||||
|
||||
|
||||
class EventAdmin(admin.ModelAdmin):
|
||||
list_display = ('dt',)
|
||||
|
||||
admin.site.register(Event, EventAdmin)
|
||||
|
||||
|
||||
class TimestampAdmin(admin.ModelAdmin):
|
||||
readonly_fields = ('created', 'updated')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user