Correct comment in search.py

This commit is contained in:
Cristopher Hernandez 2021-10-24 16:29:17 -07:00 committed by Guillaume Baffoin
parent 1688cfdaf8
commit 6acce4909a
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ class SearchEngine(object):
from django.contrib.contenttypes.models import ContentType
from watson.models import SearchEntry, has_int_pk
content_type = ContentType.objects.get_for_model(model)
# subquery to get entries which cannot be found in the original table
# subquery to get entries which cannot be found in the original table (when negated)
lookup_subquery = models.Subquery(
model.objects.all().values('pk')
)