chore: project member active filter

This commit is contained in:
NarayanBavisetti 2024-03-14 18:56:27 +05:30
parent 80761d3507
commit aec2aec8bc
2 changed files with 5 additions and 1 deletions

View File

@ -72,7 +72,10 @@ class ProjectViewSet(WebhookMixin, BaseViewSet):
.get_queryset()
.filter(workspace__slug=self.kwargs.get("slug"))
.filter(
Q(project_projectmember__member=self.request.user)
Q(
project_projectmember__member=self.request.user,
project_projectmember__is_active=True,
)
| Q(network=2)
)
.select_related(

View File

@ -69,6 +69,7 @@ class Cycle(ProjectBaseModel):
external_source = models.CharField(max_length=255, null=True, blank=True)
external_id = models.CharField(max_length=255, blank=True, null=True)
progress_snapshot = models.JSONField(default=dict)
archived_at = models.DateField(null=True)
class Meta:
verbose_name = "Cycle"