8

Add field to segment to store excluded users

This commit is contained in:
Kaitlyn Crawford
2018-02-09 12:32:42 +02:00
parent 824e42174f
commit 3162191a16
2 changed files with 28 additions and 0 deletions

View File

@@ -83,6 +83,12 @@ class Segment(ClusterableModel):
static_users = models.ManyToManyField(
settings.AUTH_USER_MODEL,
)
excluded_users = models.ManyToManyField(
settings.AUTH_USER_MODEL,
help_text=_("Users that matched the rules but were excluded from the "
"segment for some reason e.g. randomisation"),
related_name="excluded_segments"
)
matched_users_count = models.PositiveIntegerField(default=0, editable=False)
matched_count_updated_at = models.DateTimeField(null=True, editable=False)