From d17caf5f25fc6d063a7f412c5a15033b01eec6f6 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Wed, 2 Apr 2014 12:29:51 +0200 Subject: Last viewed not last visited. --- meetingtools/apps/content/admin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'meetingtools') diff --git a/meetingtools/apps/content/admin.py b/meetingtools/apps/content/admin.py index af80348..e0c25f1 100644 --- a/meetingtools/apps/content/admin.py +++ b/meetingtools/apps/content/admin.py @@ -7,7 +7,7 @@ from meetingtools.apps.content.models import Content class YearLastViewedFilter(admin.SimpleListFilter): - title = 'year last visited' + title = 'year last viewed' parameter_name = 'year' def lookups(self, request, model_admin): @@ -34,7 +34,8 @@ class YearLastViewedFilter(admin.SimpleListFilter): class ContentAdmin(admin.ModelAdmin): date_hierarchy = 'created' search_fields = ['creator__username', 'name', 'sco__sco_id'] - list_display = ('created', 'creator', 'name', 'type', 'urlpath', 'sco', 'bytecount', 'modified', 'views', 'lastviewed') + list_display = ('created', 'creator', 'name', 'type', 'urlpath', 'sco', 'bytecount', 'modified', 'views', + 'lastviewed') list_filter = (YearLastViewedFilter, 'sco__acc',) admin.site.register(Content, ContentAdmin) \ No newline at end of file -- cgit v1.1