diff --git a/_modules/apis_core/relations/filtersets.html b/_modules/apis_core/relations/filtersets.html index 6f34f0173..c9e21ee88 100644 --- a/_modules/apis_core/relations/filtersets.html +++ b/_modules/apis_core/relations/filtersets.html @@ -117,8 +117,10 @@

Source code for apis_core.relations.filtersets

[docs] def filter(self, qs, value): - all_entities = self._search_all_entities(value) - return qs.filter(**{f"{self.field_name}_object_id__in": all_entities})

+ if value: + all_entities = self._search_all_entities(value) + return qs.filter(**{f"{self.field_name}_object_id__in": all_entities}) + return qs diff --git a/htmlcov/class_index.html b/htmlcov/class_index.html index 8fac033c2..f05a9cfea 100644 --- a/htmlcov/class_index.html +++ b/htmlcov/class_index.html @@ -55,7 +55,7 @@

coverage.py v7.6.8, - created at 2024-12-11 07:10 +0000 + created at 2024-12-11 07:24 +0000

@@ -2747,30 +2747,30 @@

apis_core/relations/filtersets.py EntityFilter - 9 - 9 + 11 + 11 0 - 0% + 0% - apis_core/relations/filtersets.py - SubjObjClassFilter + apis_core/relations/filtersets.py + SubjObjClassFilter 6 6 0 0% - apis_core/relations/filtersets.py - RelationFilterSet + apis_core/relations/filtersets.py + RelationFilterSet 9 9 0 0% - apis_core/relations/filtersets.py - RelationFilterSet.Meta + apis_core/relations/filtersets.py + RelationFilterSet.Meta 0 0 0 @@ -3517,10 +3517,10 @@

Total   - 4050 - 1977 + 4052 + 1979 0 - 51% + 51% @@ -3532,7 +3532,7 @@

coverage.py v7.6.8, - created at 2024-12-11 07:10 +0000 + created at 2024-12-11 07:24 +0000