summaryrefslogtreecommitdiff
path: root/meetingtools/apps/content
diff options
context:
space:
mode:
Diffstat (limited to 'meetingtools/apps/content')
-rw-r--r--meetingtools/apps/content/admin.py5
1 files changed, 3 insertions, 2 deletions
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