summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2014-04-02 12:29:51 +0200
committerJohan Lundberg <lundberg@nordu.net>2014-04-02 12:29:51 +0200
commitd17caf5f25fc6d063a7f412c5a15033b01eec6f6 (patch)
tree3b5995bc490f29b659fd0487154e6c40fc1244dc
parentaa33fc379e512e88354a000972999a835266ed68 (diff)
Last viewed not last visited.
-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