Skip to content

Commit

Permalink
fix: segment limit validation versioning (#9)
Browse files Browse the repository at this point in the history
* objects -> live_objects

* Bump version
  • Loading branch information
matthewelwell authored Dec 4, 2024
1 parent 53dfd17 commit 5ac44b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/segments/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <matthew.elwell@flagsmith.com>"]
readme = "README.md"
Expand Down

0 comments on commit 5ac44b7

Please sign in to comment.