0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Better column headings

This commit is contained in:
Matt Westcott 2021-07-23 15:50:41 +01:00
parent ce3a3daffa
commit 62f05024d2
2 changed files with 5 additions and 5 deletions

View File

@ -7,10 +7,10 @@
<thead>
<tr>
<th class="title">
{% trans 'Item' %}
{% trans 'Name' %}
</th>
<th>
{% trans 'Object type' %}
{% trans 'Type' %}
</th>
<th>
{% trans 'Action' %}

View File

@ -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")