From 07005713bbf39aad5092d55b0aa249c87cac24b7 Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Fri, 3 Aug 2018 12:55:05 +0100
Subject: [PATCH] fixup! Make sure the applicant cant see the private activity

---
 opentech/apply/activity/models.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/opentech/apply/activity/models.py b/opentech/apply/activity/models.py
index 7970cf9eb..7dfda64fe 100644
--- a/opentech/apply/activity/models.py
+++ b/opentech/apply/activity/models.py
@@ -61,6 +61,10 @@ class CommentManger(ActivityBaseManager):
     type = COMMENT
 
 
+class ActionQueryset(BaseActivityQuerySet):
+    pass
+
+
 class ActionManager(ActivityBaseManager):
     type = ACTION
 
@@ -75,7 +79,7 @@ class Activity(models.Model):
 
     objects = models.Manager.from_queryset(ActivityQuerySet)()
     comments = CommentManger.from_queryset(CommentQueryset)()
-    actions = ActionManager()
+    actions = ActionManager.from_queryset(ActionQueryset)()
 
     class Meta:
         ordering = ['-timestamp']
-- 
GitLab