Commit 253d06f0 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Remove update of modules status

parent 8c0b818e
......@@ -210,12 +210,7 @@ class Course(models.Model):
def public_lessons(self):
lessons = []
for lesson in self.lessons.all():
if lesson.status == 'draft':
if lesson.release_date and lesson.release_date <=
lesson.status = 'published'
if lesson.status == 'published':
return lessons
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