From 8f19d514104931c709e6b7a53acc9de8fd6639fc Mon Sep 17 00:00:00 2001 From: Alexander-D-Karpov Date: Tue, 19 Dec 2023 12:51:59 +0300 Subject: [PATCH] updated files --- akarpov/files/services/search.py | 5 +++++ akarpov/files/views.py | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) 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) )