Commit 12d9007f authored by Lynn Foster's avatar Lynn Foster
Browse files

commitment considered finished if its process is finished

parent dfbcfe2c
......@@ -9843,7 +9843,7 @@ class Option(models.Model):
class CommitmentManager(models.Manager):
def unfinished(self):
return Commitment.objects.filter(finished=False)
return Commitment.objects.filter(finished=False).filter(process__finished=False)
def finished(self):
return Commitment.objects.filter(finished=True)
Supports Markdown
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