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 ++++++- meetingtools/apps/sco/admin.py | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) 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 diff --git a/meetingtools/apps/sco/admin.py b/meetingtools/apps/sco/admin.py index 98da992..3dd24c8 100644 --- a/meetingtools/apps/sco/admin.py +++ b/meetingtools/apps/sco/admin.py @@ -7,4 +7,10 @@ Created on Jan 31, 2011 from django.contrib import admin from meetingtools.apps.sco.models import ACObject -admin.site.register(ACObject) \ No newline at end of file + +class ACObjectAdmin(admin.ModelAdmin): + date_hierarchy = 'timecreated' + list_display = ('timecreated', 'acc', 'sco_id', 'lastupdated', 'is_deleted') + + +admin.site.register(ACObject, ACObjectAdmin) \ No newline at end of file -- cgit v1.1