Skip to content

Commit

Permalink
Remove a nonexistent variable
Browse files Browse the repository at this point in the history
CourseMixin does not define the template context variable is_teacher,
hence it should not call note() for it.
  • Loading branch information
markkuriekkinen committed Sep 14, 2021
1 parent 6210d8f commit 9e402d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/viewbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_resource_objects(self):
Course,
url=self._get_kwarg(self.course_kw)
)
self.note("course", "is_teacher")
self.note("course")


class CourseBaseView(CourseMixin, BaseTemplateView):
Expand Down

0 comments on commit 9e402d2

Please sign in to comment.