diff --git a/akarpov/files/services/search.py b/akarpov/files/services/search.py index 452750a..cef6f45 100644 --- a/akarpov/files/services/search.py +++ b/akarpov/files/services/search.py @@ -13,6 +13,11 @@ from ..documents import FileDocument from .lema import lemmatize_and_remove_stopwords +""" +Calculus on types of searches: +https://new.akarpov.ru/files/FZUTFBIyfbdlDHVzxUNU +""" + class BaseSearch: def __init__(self, queryset: QuerySet | None = None): diff --git a/akarpov/files/views.py b/akarpov/files/views.py index 585a2b0..ec6c5dd 100644 --- a/akarpov/files/views.py +++ b/akarpov/files/views.py @@ -92,9 +92,7 @@ def get_queryset(self): ): return self.filter(BaseFileItem.objects.none()) return self.filter( - BaseFileItem.objects.cache().filter( - user=self.request.user, parent__isnull=True - ) + BaseFileItem.objects.filter(user=self.request.user, parent__isnull=True) )