~ubuntuone-pqm-team/django/stable

« back to all changes in this revision

Viewing changes to tests/timezones/admin.py

  • Committer: Natalia
  • Date: 2014-12-05 15:21:13 UTC
  • Revision ID: natalia.bidart@ubuntu.com-20141205152113-cchtmygjia45gb87
Tags: 1.6.8
- Imported Django 1.6.8 from released tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from __future__ import absolute_import
 
2
 
 
3
from django.contrib import admin
 
4
 
 
5
from .models import Event, Timestamp
 
6
 
 
7
class EventAdmin(admin.ModelAdmin):
 
8
    list_display = ('dt',)
 
9
 
 
10
admin.site.register(Event, EventAdmin)
 
11
 
 
12
class TimestampAdmin(admin.ModelAdmin):
 
13
    readonly_fields = ('created', 'updated')
 
14
 
 
15
admin.site.register(Timestamp, TimestampAdmin)