Skip to content

Commit

Permalink
fix: activity log org filter (#20272)
Browse files Browse the repository at this point in the history
* fix: activity log filters by org by default

* inline

* Update posthog/api/activity_log.py
  • Loading branch information
pauldambra authored Feb 12, 2024
1 parent 84ef17b commit df72e97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions posthog/api/activity_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ class ActivityLogViewSet(TeamAndOrgViewSetMixin, viewsets.GenericViewSet, mixins
pagination_class = ActivityLogPagination

def filter_queryset_by_parents_lookups(self, queryset) -> QuerySet:
team = self.team
return queryset.filter(Q(organization_id=team.organization_id) | Q(team_id=team.id))
return queryset.filter(team_id=self.team.id)

def get_queryset(self) -> QuerySet:
queryset = super().get_queryset()
Expand Down

0 comments on commit df72e97

Please sign in to comment.