From 02723c27c2d2adfcc0c73504bb4c26fbe0a24b51 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Thu, 20 Mar 2014 10:42:08 +0100 Subject: Better admin list view for Room and ACObject. --- meetingtools/apps/room/admin.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meetingtools/apps/room') diff --git a/meetingtools/apps/room/admin.py b/meetingtools/apps/room/admin.py index 13d80a8..73235f3 100644 --- a/meetingtools/apps/room/admin.py +++ b/meetingtools/apps/room/admin.py @@ -7,4 +7,9 @@ Created on Jan 31, 2011 from django.contrib import admin from meetingtools.apps.room.models import Room -admin.site.register(Room) \ No newline at end of file + +class RoomAdmin(admin.ModelAdmin): + date_hierarchy = 'timecreated' + list_display = ('timecreated', 'creator', 'name', 'urlpath', 'sco', 'deleted_sco', 'lastupdated', 'lastvisited') + +admin.site.register(Room, RoomAdmin) \ No newline at end of file -- cgit v1.1