Commit d4c97894 authored by Élie Bouttier's avatar Élie Bouttier

fix todo doublon destinataires notifications

parent 6677892b
......@@ -81,7 +81,7 @@ class Task(models.Model):
return get_user_model().objects.filter(
( Q(subscribed_tasklists=self.task_list) & ~Q(unsubscribed_tasks=self)) \
| (~Q(subscribed_tasklists=self.task_list) & Q(subscribed_tasks=self))
)
).order_by('pk').distinct('pk')
def overdue_status(self):
"Returns whether the Tasks's due date has passed or not."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment