File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1112,10 +1112,10 @@ def get_quiz_details(self):
11121112 for quiz in self .get_quizzes ()]
11131113
11141114 def get_learning_units (self ):
1115- learning_modules = self .learning_module . all ()
1115+ learning_modules = self .get_learning_modules ()
11161116 learning_units = []
11171117 for module in learning_modules :
1118- learning_units .extend (module .get_learning_units ( ))
1118+ learning_units .extend (module .learning_unit . select_related ( 'lesson' ))
11191119 return learning_units
11201120
11211121 def get_lesson_posts (self ):
Original file line number Diff line number Diff line change @@ -3582,7 +3582,6 @@ def lessons_forum(request, course_id):
35823582 base_template = 'manage.html'
35833583 moderator = True
35843584 course = get_object_or_404 (Course , id = course_id )
3585- course_ct = ContentType .objects .get_for_model (course )
35863585 lesson_posts = course .get_lesson_posts ()
35873586 return render (request , 'yaksh/lessons_forum.html' , {
35883587 'user' : user ,
You can’t perform that action at this time.
0 commit comments