mirror of https://github.com/jumpserver/jumpserver
fix(terminal): 移除`CommandQueryMixin.get_filter_fields`
parent
c7a02586c1
commit
061592fa6b
|
@ -65,11 +65,6 @@ class CommandQueryMixin:
|
||||||
def filter_queryset(self, queryset):
|
def filter_queryset(self, queryset):
|
||||||
return 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):
|
def get_date_range(self):
|
||||||
now = timezone.now()
|
now = timezone.now()
|
||||||
days_ago = now - timezone.timedelta(days=self.default_days_ago)
|
days_ago = now - timezone.timedelta(days=self.default_days_ago)
|
||||||
|
|
Loading…
Reference in New Issue