diff --git a/backend/core/models.py b/backend/core/models.py index a9ad4411f..5069db3c7 100644 --- a/backend/core/models.py +++ b/backend/core/models.py @@ -655,6 +655,9 @@ def get_linked_requirements_count(self): class PolicyManager(models.Manager): + def get_queryset(self): + return super().get_queryset().filter(category="policy") + def create(self, *args, **kwargs): kwargs["category"] = "policy" # Ensure category is always "policy" return super().create(*args, **kwargs)