2011-11-18 13:01:06 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
from .models import Event, Timestamp
|
|
|
|
|
2013-11-02 21:34:05 +00:00
|
|
|
|
2011-11-18 13:01:06 +00:00
|
|
|
class EventAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('dt',)
|
|
|
|
|
2013-11-02 21:34:05 +00:00
|
|
|
|
2011-11-18 13:01:06 +00:00
|
|
|
class TimestampAdmin(admin.ModelAdmin):
|
|
|
|
readonly_fields = ('created', 'updated')
|
|
|
|
|
2016-11-12 17:11:23 +00:00
|
|
|
|
2015-03-30 16:33:26 +00:00
|
|
|
site = admin.AdminSite(name='admin_tz')
|
|
|
|
site.register(Event, EventAdmin)
|
|
|
|
site.register(Timestamp, TimestampAdmin)
|