mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Add date range filters to workflow reports
This commit is contained in:
parent
3cb8b90a0d
commit
bcbf6f0366
@ -98,14 +98,17 @@ class LockedPagesReportFilterSet(WagtailFilterSet):
|
||||
|
||||
|
||||
class WorkflowReportFilterSet(WagtailFilterSet):
|
||||
created_at = django_filters.DateFromToRangeFilter(label='Started at', widget=DateRangePickerWidget)
|
||||
|
||||
class Meta:
|
||||
model = WorkflowState
|
||||
fields = ['workflow', 'status']
|
||||
fields = ['workflow', 'status', 'created_at']
|
||||
|
||||
|
||||
class WorkflowTasksReportFilterSet(WagtailFilterSet):
|
||||
created_at = django_filters.DateFromToRangeFilter(label='Started at', widget=DateRangePickerWidget)
|
||||
finished_at = django_filters.DateFromToRangeFilter(label='Completed at', widget=DateRangePickerWidget)
|
||||
|
||||
class Meta:
|
||||
model = TaskState
|
||||
fields = ['task', 'status']
|
||||
fields = ['task', 'status', 'created_at', 'finished_at']
|
||||
|
Loading…
Reference in New Issue
Block a user