From 3f2505333bad788da934b1b6c90a64d1bded8238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Mon, 18 Aug 2014 10:32:54 +0200 Subject: [PATCH] Fixed notification api (again) --- taiga/projects/notifications/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taiga/projects/notifications/api.py b/taiga/projects/notifications/api.py index ab2bdfb0..42b4b9aa 100644 --- a/taiga/projects/notifications/api.py +++ b/taiga/projects/notifications/api.py @@ -51,5 +51,5 @@ class NotifyPolicyViewSet(ModelCrudViewSet): def get_queryset(self): self._build_needed_notify_policies() - qs = models.NotifyPolicy.objects.filter(project__owner=self.request.user) + qs = models.NotifyPolicy.objects.filter(user=self.request.user) return qs.distinct()