fix search mixin bug
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from apps.core.services.filter.search import DynamicSearchService
|
||||
from rest_framework.exceptions import APIException
|
||||
|
||||
|
||||
class DynamicSearchMixin:
|
||||
@@ -10,8 +11,8 @@ class DynamicSearchMixin:
|
||||
def get_date_field(self):
|
||||
return getattr(self, "date_field", "create_date")
|
||||
|
||||
def filter_queryset(self, queryset):
|
||||
queryset = super().filter_queryset(queryset) # noqa
|
||||
def filter_query(self, queryset):
|
||||
queryset = queryset # noqa
|
||||
|
||||
q = self.request.query_params.get("search") # noqa
|
||||
start = self.request.query_params.get("start") # noqa
|
||||
|
||||
Reference in New Issue
Block a user