summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2014-03-20 10:42:08 +0100
committerJohan Lundberg <lundberg@nordu.net>2014-03-20 10:42:08 +0100
commit02723c27c2d2adfcc0c73504bb4c26fbe0a24b51 (patch)
tree1803c4ba5be055f77e05f24181048367c4e1e524
parent45b21cf3874160b29c7733bec80083d41bf70a6c (diff)
Better admin list view for Room and ACObject.
-rw-r--r--meetingtools/apps/room/admin.py7
-rw-r--r--meetingtools/apps/sco/admin.py8
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