From 31e258a9d2e253691fd548d47aaab3cfee756322 Mon Sep 17 00:00:00 2001
From: CruiseDevice
Date: Thu, 17 Sep 2020 13:32:12 +0530
Subject: Fix tests and minor changes
---
yaksh/models.py | 4 +--
yaksh/templates/yaksh/course_forum.html | 42 ++++++++++++++++----------------
yaksh/templates/yaksh/lessons_forum.html | 12 ++++++---
yaksh/templatetags/custom_filters.py | 1 -
yaksh/test_views.py | 4 +--
yaksh/views.py | 4 +--
6 files changed, 35 insertions(+), 32 deletions(-)
(limited to 'yaksh')
diff --git a/yaksh/models.py b/yaksh/models.py
index df70fc1..2ed03ed 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1102,7 +1102,7 @@ class Course(models.Model):
learning_units.extend(module.get_learning_units())
return learning_units
- def get_lesson_posts(self, user):
+ def get_lesson_posts(self):
learning_units = self.get_learning_units()
comments = []
for unit in learning_units:
@@ -1113,7 +1113,7 @@ class Course(models.Model):
post = Post.objects.get(
target_ct=lesson_ct,
target_id=unit.lesson.id,
- active=True, title=title, creator=user
+ active=True, title=title
)
except Post.DoesNotExist:
post = None
diff --git a/yaksh/templates/yaksh/course_forum.html b/yaksh/templates/yaksh/course_forum.html
index a9bda6f..0346121 100644
--- a/yaksh/templates/yaksh/course_forum.html
+++ b/yaksh/templates/yaksh/course_forum.html
@@ -55,28 +55,28 @@
-