diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 8f429517..dcb46f75 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -70,6 +70,7 @@ jobs: lookup.tests.LookupTests.test_escaping model_fields or_lookups + sessions_tests docs: name: Docs Checks diff --git a/django_mongodb/compiler.py b/django_mongodb/compiler.py index a336fa1f..925ac124 100644 --- a/django_mongodb/compiler.py +++ b/django_mongodb/compiler.py @@ -57,7 +57,7 @@ def results_iter( yield self._make_result(entity, columns, tuple_expected=tuple_expected) def has_results(self): - return self.get_count(check_exists=True) + return bool(self.get_count(check_exists=True)) def _make_result(self, entity, columns, tuple_expected=False): """