blob: 4c199813e2561dafdeef7c5b04639df0bb0c03fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
from __future__ import absolute_import
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')
admin.site.register(Timestamp, TimestampAdmin)
|