diff options
author | Johan Lundberg <lundberg@nordu.net> | 2014-04-02 12:29:51 +0200 |
---|---|---|
committer | Johan Lundberg <lundberg@nordu.net> | 2014-04-02 12:29:51 +0200 |
commit | d17caf5f25fc6d063a7f412c5a15033b01eec6f6 (patch) | |
tree | 3b5995bc490f29b659fd0487154e6c40fc1244dc | |
parent | aa33fc379e512e88354a000972999a835266ed68 (diff) |
Last viewed not last visited.
-rw-r--r-- | meetingtools/apps/content/admin.py | 5 |
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 |