summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorCruiseDevice2020-09-17 13:32:12 +0530
committerankitjavalkar2020-10-08 10:42:51 +0530
commit31e258a9d2e253691fd548d47aaab3cfee756322 (patch)
tree496d815a2df967d515d09030108324d7a7d5a998 /yaksh/views.py
parent5e49406420207123afec88a1ca7138e7a58c2acc (diff)
downloadonline_test-31e258a9d2e253691fd548d47aaab3cfee756322.tar.gz
online_test-31e258a9d2e253691fd548d47aaab3cfee756322.tar.bz2
online_test-31e258a9d2e253691fd548d47aaab3cfee756322.zip
Fix tests and minor changes
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 084ec1e..e465369 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -2810,7 +2810,7 @@ def show_lesson(request, lesson_id, module_id, course_id):
try:
post = Post.objects.get(
target_ct=lesson_ct, target_id=learn_unit.lesson.id,
- active=True, title=title, creator=user,
+ active=True, title=title
)
except Post.DoesNotExist:
post = Post.objects.create(
@@ -3527,7 +3527,7 @@ def lessons_forum(request, course_id):
moderator = True
course = get_object_or_404(Course, id=course_id)
course_ct = ContentType.objects.get_for_model(course)
- lesson_posts = course.get_lesson_posts(user)
+ lesson_posts = course.get_lesson_posts()
return render(request, 'yaksh/lessons_forum.html', {
'user': user,
'base_template': base_template,