Skip to content
Snippets Groups Projects
Commit 07005713 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

fixup! Make sure the applicant cant see the private activity

parent 67ee7aae
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,10 @@ class CommentManger(ActivityBaseManager): ...@@ -61,6 +61,10 @@ class CommentManger(ActivityBaseManager):
type = COMMENT type = COMMENT
class ActionQueryset(BaseActivityQuerySet):
pass
class ActionManager(ActivityBaseManager): class ActionManager(ActivityBaseManager):
type = ACTION type = ACTION
...@@ -75,7 +79,7 @@ class Activity(models.Model): ...@@ -75,7 +79,7 @@ class Activity(models.Model):
objects = models.Manager.from_queryset(ActivityQuerySet)() objects = models.Manager.from_queryset(ActivityQuerySet)()
comments = CommentManger.from_queryset(CommentQueryset)() comments = CommentManger.from_queryset(CommentQueryset)()
actions = ActionManager() actions = ActionManager.from_queryset(ActionQueryset)()
class Meta: class Meta:
ordering = ['-timestamp'] ordering = ['-timestamp']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment