From e94c5daca7ab570dd09257608ffad0083b40a8e2 Mon Sep 17 00:00:00 2001 From: xinwen Date: Tue, 14 Jul 2020 19:11:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(terminal):=20=E7=A7=BB=E9=99=A4`CommandQuer?= =?UTF-8?q?yMixin.get=5Ffilter=5Ffields`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/api/command.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/terminal/api/command.py b/apps/terminal/api/command.py index 749da4fcb..f98fa0e7c 100644 --- a/apps/terminal/api/command.py +++ b/apps/terminal/api/command.py @@ -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)