mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Merged regressiontests and modeltests into the test root.
This commit is contained in:
15
tests/timezones/admin.py
Normal file
15
tests/timezones/admin.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user