fix(terminal): 移除`CommandQueryMixin.get_filter_fields`

pull/4321/head
xinwen 2020-07-14 19:11:08 +08:00 committed by 老广
parent c7a02586c1
commit 061592fa6b
1 changed files with 0 additions and 5 deletions

View File

@ -65,11 +65,6 @@ class CommandQueryMixin:
def filter_queryset(self, queryset):
return queryset
def get_filter_fields(self, request):
fields = self.filter_fields
fields.extend(["date_from", "date_to"])
return fields
def get_date_range(self):
now = timezone.now()
days_ago = now - timezone.timedelta(days=self.default_days_ago)