From 62f05024d2143d8091a11d864434ec478c92e7fd Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Fri, 23 Jul 2021 15:50:41 +0100 Subject: [PATCH] Better column headings --- .../admin/templates/wagtailadmin/reports/site_history.html | 4 ++-- wagtail/admin/views/reports/audit_logging.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wagtail/admin/templates/wagtailadmin/reports/site_history.html b/wagtail/admin/templates/wagtailadmin/reports/site_history.html index 2e18ffb495..5543c9b014 100644 --- a/wagtail/admin/templates/wagtailadmin/reports/site_history.html +++ b/wagtail/admin/templates/wagtailadmin/reports/site_history.html @@ -7,10 +7,10 @@ - {% trans 'Item' %} + {% trans 'Name' %} - {% trans 'Object type' %} + {% trans 'Type' %} {% trans 'Action' %} diff --git a/wagtail/admin/views/reports/audit_logging.py b/wagtail/admin/views/reports/audit_logging.py index 66cd6989f1..2aaab2e4d2 100644 --- a/wagtail/admin/views/reports/audit_logging.py +++ b/wagtail/admin/views/reports/audit_logging.py @@ -43,12 +43,12 @@ class SiteHistoryReportFilterSet(WagtailFilterSet): widget=forms.CheckboxInput, ) timestamp = django_filters.DateFromToRangeFilter(label=_('Date'), widget=DateRangePickerWidget) - label = django_filters.CharFilter(label=_('Title'), lookup_expr='icontains') + label = django_filters.CharFilter(label=_('Name'), lookup_expr='icontains') user = django_filters.ModelChoiceFilter( field_name='user', queryset=lambda request: get_users_for_filter() ) object_type = ContentTypeFilter( - label=_('Object type'), + label=_('Type'), method='filter_object_type', queryset=lambda request: get_content_types_for_filter() ) @@ -75,7 +75,7 @@ class LogEntriesView(ReportView): export_headings = { "object_id": _("ID"), - "title": _("Title"), + "title": _("Name"), "object_verbose_name": _("Type"), "action": _("Action type"), "timestamp": _("Date/Time")