From 64298d4afebdece1eaccb363e83dc64db6645c45 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 30 Jan 2019 12:50:07 +0530 Subject: Allow course moderators to hide or show the grade to students --- yaksh/models.py | 1 + yaksh/templates/yaksh/course_modules.html | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/yaksh/models.py b/yaksh/models.py index cce90e7..5036524 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -758,6 +758,7 @@ class Course(models.Model): teachers = models.ManyToManyField(User, related_name='teachers') is_trial = models.BooleanField(default=False) instructions = models.TextField(default=None, null=True, blank=True) + view_grade = models.BooleanField(default=False) learning_module = models.ManyToManyField(LearningModule, related_name='learning_module') diff --git a/yaksh/templates/yaksh/course_modules.html b/yaksh/templates/yaksh/course_modules.html index 917f78c..244c2d9 100644 --- a/yaksh/templates/yaksh/course_modules.html +++ b/yaksh/templates/yaksh/course_modules.html @@ -2,7 +2,6 @@ {% load custom_filters %} {% block title %} Course Modules {% endblock %} {% block script %} -