diff options
Diffstat (limited to 'tests/timezones/admin.py')
| -rw-r--r-- | tests/timezones/admin.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/timezones/admin.py b/tests/timezones/admin.py new file mode 100644 index 0000000000..4c199813e2 --- /dev/null +++ b/tests/timezones/admin.py @@ -0,0 +1,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) |
