diff --git a/loads/models.py b/loads/models.py index 7994cd5..0196608 100644 --- a/loads/models.py +++ b/loads/models.py @@ -213,7 +213,7 @@ def get_all_tasks(self): # And those assigned against the group groups = Group.objects.all().filter(user=self.user) - group_tasks = Task.objects.all().filter(groups__in=groups).distinct().order_by('deadline') + group_tasks = Task.objects.all().filter(groups__in=groups).exclude(archive=True).distinct().order_by('deadline') # Combine them all_tasks = user_tasks | group_tasks