2011-11-18 21:01:06 +08:00
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
from .models import Event, Timestamp
|
|
|
|
|
2013-11-03 05:34:05 +08:00
|
|
|
|
2011-11-18 21:01:06 +08:00
|
|
|
class EventAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('dt',)
|
|
|
|
|
|
|
|
admin.site.register(Event, EventAdmin)
|
|
|
|
|
2013-11-03 05:34:05 +08:00
|
|
|
|
2011-11-18 21:01:06 +08:00
|
|
|
class TimestampAdmin(admin.ModelAdmin):
|
|
|
|
readonly_fields = ('created', 'updated')
|
|
|
|
|
|
|
|
admin.site.register(Timestamp, TimestampAdmin)
|