diff --git a/common/segments/serializers.py b/common/segments/serializers.py index b573b5f..c6bde2e 100644 --- a/common/segments/serializers.py +++ b/common/segments/serializers.py @@ -122,7 +122,7 @@ def update( def validate_project_segment_limit(self, project: models.Model) -> None: if ( apps.get_model("segments", "Segment") - .objects.filter(project=project) + .live_objects.filter(project=project) .count() >= project.max_segments_allowed ): diff --git a/pyproject.toml b/pyproject.toml index 7bb4957..2302136 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "flagsmith_common" -version = "1.4.1" +version = "1.4.2" description = "A repository for including code that is required in multiple flagsmith repositories" authors = ["Matthew Elwell "] readme = "README.md"