Commit df1d5117 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Take draft units in count on progress

parent 8aec71e7
......@@ -204,7 +204,7 @@ class Course(models.Model):
def unit_set(self):
return Unit.objects.filter(lesson__in=self.lessons.all(), status='published').order_by('lesson')
return Unit.objects.filter(lesson__in=self.lessons.all()).order_by('lesson')
def public_lessons(self):
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